SR23
October 13, 2021, 1:32pm
1
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.
SR23
October 13, 2021, 1:34pm
2
Something like this for each country
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.
system
Closed
November 4, 2021, 10:01am
4
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.