Home > database >  How can I make time series data with multiple lines?
How can I make time series data with multiple lines?

Time:04-30

I want to plot the yield of sugarcane, coconut and rice in time. But I got this output:

My output plot

My dataset is here: enter image description here

CodePudding user response:

ggplot(data, aes(x = Year, y = Yield, colour = Crop, group = Crop)) geom_smooth() xlab("")

  • Related