Hi having a problem where March appears twice in my graph but not in my Data.
My data looks like. My data frame is called try1.
Month Year tcol
2016-01-01 00:00:00 06 1461.0
2016-02-01 00:00:00 06 259.5
2016-03-01 00:00:00 06 191.2
2016-04-01 01:00:00 06 151.5
2016-05-01 01:00:00 06 119.6
2016-06-01 01:00:00 06 1372.5
2016-07-01 01:00:00 06 954.0
2016-08-01 01:00:00 06 1784.0
2016-09-01 01:00:00 06 1369.0
2016-10-01 01:00:00 06 6077.0
2016-11-01 00:00:00 06 1638.0
2016-12-01 00:00:00 06 3308.0
And my code looks like.
ggplot(try1, aes(Month,tcol)) +
geom_point(aes(colour = Year),size=2) +
geom_line(aes(colour = Year), size=0.73)+
theme_bw()+
guides(col = guide_legend(ncol = 2))+
scale_x_datetime(
breaks=date_breaks("1 months"),
labels=date_format("%B"))+
xlab("")+ #x axis label
ylab("Total Coliforms")
The problem is that when I plot my graph March appears twice. And October appears to be left out.
Thanks for your help.
dput(try1)and copy the result into your question. That will we are working with the same classes of objects.