I am trying to create a line plot with this df named total_sales. It's content is
date tot_amount
Jul-18 165275
Aug-18 158731
Sep-18 160522
Oct-18 164416
Nov-18 160234
Dec-18 167913
Jan-19 162642
Feb-19 150665
Mar-19 166265
Apr-19 159845
May-19 157368
Jun-19 160539
I wrote a code to plot a line graph showing total sales over time.
ggplot(data = total_sales_by_month_year, aes(x = month_year, y = total_sales)) +
geom_line() +
labs(title = "Total Sales by Month", x = "Month", y = "Total Sales")
But this is the plot that was displayed to me.
The result above does not contain a geom_line.
I would appreciate help with this. Thanks