I have a dataframe with precipitation datewise.
head(df,n=5)
Date RCM
1 2018-01-01 31.38134
2 2018-01-02 273.23595
3 2018-01-03 1021.34547
4 2018-01-04 612.70087
5 2018-01-05 37.61821
my aim is to create timeseries for the winter season. I acheived so by extracting winter months from df and used ggplot.
WIN1<-df[df$Date >= "2018-12-01" & df$Date <= "2018-12-31", ]
WIN2<-df[df$Date >= "2018-01-01" & df$Date <= "2018-02-28", ]
WIN<-rbind(WIN2,WIN1)
dfmelt<-melt(WIN,id.vars="Date")
ggplot(dfmelt,aes(x=Date,y=value,
col=variable))+
labs(title='WINTER')+
geom_line()
but this gives the plot with a flatine for the missing months. any way to transform this without the middle part to get a better looking plot. plot
PS: any way of just plotting reverse x axes. so it dec to feb?