I want to plot a frequency of topics over years. However my variable containing dates have the following structure, example:2016-01-01. This means that the data is structured in days. However i want the data to be visualized on a monthly basis.
The data is structured in a data.frame
I tried to visualize my topic frequency over the dates as such:
ggplot(data = dat,
aes(x = date,
fill = Topics[1])) +
geom_freqpoly(binwidth = 30)
However when i execute the command my visualization only shows every third month, like: January, April, July, etc..
How do I get the dates on the x-axis to show all the months: (January, Februrary, March, April .. etc)?
You can edit your x axis labels