Attached is the sample data set out of the entire dataset that i am working on.
I uploaded this data in R studio and below is the code of lines that i tried to run.
R-Code
#Sort the data
sample.yearly <-sample.yearly[order(sample.yearly$Category, sample.yearly$Starting Year),]
#Create time series & plot
sample.yearly.ts = ts(sample.yearly)
plot(sample.yearly.ts) #just a plot
#Error
Error in plotts(x = x, y = y, plot.type = plot.type, xy.labels = xy.labels, :
cannot plot more than 10 series as "multiple"
My aim here is to create a time series for the attached dataset
- Based on each Category
- Time series as a whole dataset
Any pointers for this would be highly appreciated.
Thanks