Multiple Timeseries Plot

Hello coders,

I'm trying to plot multiple time series for the dataset attached; any idea what sort of code and what format the data in my .csv file should be?

I am looking to create multiple graphs; one for each country, with the years on the x-axis and metric value on the y-axis.

Any help with the code will be much appreciated.

Something like this for each country :slight_smile:
Sample Graph

Welcome. It isn't in the best format, but you could read it, then tidy it using packages like dplyr and tidyr, then use a package like ggplot2 to create the graph. It might be useful to have a look at these packages.

Ideally it should be long and tidy.. Some examples of graphs.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.