I am trying to plot the time series with the data
for that I am trying
NCORE_GEOS_PM_01 %>% ggplot(aes(x = date, y=value, colour=variable)) + geom_point(size=0.8, alpha=0.9) + scale_x_date(date_labels = "%Y")
I am getting this plot (plot_01)
But, I need a continuous plot. The data have only 06,07,08 months data from 2012 to 2019.
So, for the continuous plot, I converted the date into characters.
NCORE_GEOS_PM_01 %>% mutate(date = as.character(date)) %>% ggplot(aes(x = date, y=value, colour=variable)) + geom_point(size=0.8, alpha=0.9)
from this, I am getting (plot_02)
In plot_2, I am not able to set the x-axis. I need to show only the years on the x-axis.
So, could you please let me know how to create a continuous time series without any gaps (with years on the x-axis).