5
$\begingroup$

I've a dataset of - Number of accidents that happens in each state. The dataset spans from 2001 to 2014.

Which plot should I use to represent the information - number of accidents in each state per year, in 1 plot.

$\endgroup$
0
1
$\begingroup$

For time data, you should often use a simple Line Chart, with time on the X axis and the other variable dependent of time (here the number of accident) on the Y axis. Since you have several states to plot, you can simply draw one line for each state. to differentiate them, you can use a visualization variable : color, width, pattern ... Color is probably the most relevant here. You can as well write the name of the state near each line.

$\endgroup$
1
  • $\begingroup$ Yea Got it thanks $\endgroup$ – ashukid Jun 18 '19 at 2:50
0
$\begingroup$

Use matplotlib (Multiple plots with scrollable window). Consider X axis as year and Y axis as state name.

The links below might help you.

Scrollbar on matplotlib showing page

Topographic hillshading

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.