I visualized my data with a ggplot2-code. It worked really well, my only issue is the x-axis. R named all the dates, which lead to a chaotic state of the x-axis.
ggplot(Oct_Apr)+ aes(x=date, y=ctr, group=1) + geom_line(linewidth = 0.7) + geom_smooth(method = "gam", se = TRUE, alpha = 0.5) + scale_y_continuous(breaks = c(10000,20000,50000,100000,200000,300000,400000,500000),labels=comma) + geom_hline(mapping = aes(yintercept = min(Oct_Apr$ctr)), linetype = "dashed", color = "red") + geom_hline(mapping = aes(yintercept = max(Oct_Apr$ctr)), linetype = "dashed", color = "red") + theme_linedraw() + labs(x="date“, y="(CTR)", title = „Click-Through-Rate Oct. 2019 - Apr. 2020", subtitle = "Click-Through-Rate (CTR) - Min. 27.02.2020; Max. 15.11.2019")
Maybe someone has an idea of how I can improve the x-axis of this ggplot2 graph?
I have combined the time values in a date variable so that I can visualize the entire time period.
However, the consequence is that the date_breaks
command doesn't seem to work, as well as scale_x_date(breaks=waiver("2019.10.01","2019.11.01", "2019.12.01", "2020.01.01", "2020.02.01", "2020.03.01", "2020.04.01“)
.