[Solved] Line chart with categorical values in ggplot2?

1) The issue is that sales_clean$Year is a factor. 2) ggplot interprit your x-value as categorical, y-value as continous and aggregated value into the bar plot (instead bar there are lines). Please see the simulation: library(ggplot2) set.seed(123) sales_clean <- data.frame(Year = rep(factor(2014:2018), 1000), Net_Rev = abs(rnorm(5000))) plotLine <- ggplot(sales_clean, aes(Year, Net_Rev, na.rm = FALSE)) plotLine … Read more