I have a large dataframe. i am trying to plot sales for 2 different years in the same plots as line graph to show the variation across 2 years each month. There is a long series of grouping and filtering i have done before getting the below dataframe. Dataframe has 3 columns (month, sales and the year)
When I am trying to plot the sales across the different years as :
ggplot(df,aes(x=month.sales,y=sales/100000,color=year)) +
geom_line()
I am getting a blank graph with x and y labels , while if I plot a column graph, it works. Please help. thank you
python
? Can you post sample data? Please edit the question with the output ofdput(df)
. Or, if it is too big with the output ofdput(head(df, 20))
. – Rui Barradas