正在尝试绘制一系列线geom_line。无法弄清楚如何将Macropod / Macropod站点/ Pig和Pig站点都放在同一张图表上。 我可以在同一张图表上绘制Macropod和Macropod网站的图,但是日期不整齐,非常混乱。
maxmacsite<-ggplot(pd, aes(date1, group = 1))+
geom_line(aes(y = Macropod, colour = "Macropod"))+
geom_line(aes(y = Macropod.Sites, colour = "Macropod.Sites"))+
scale_colour_manual("Count", values = c("Macropod"="red", "Macropod.Sites"="blue"))
maxmacsite
1 3/09/2018 10 4 13 7 3/09/2018 <NA>
2 4/09/2018 10 1 17 4 4/09/2018 <NA>
3 5/09/2018 10 4 15 6 5/09/2018 <NA>
4 6/09/2018 10 5 15 5 6/09/2018 <NA>
5 7/09/2018 9 4 18 5 7/09/2018 <NA>
6 8/09/2018 10 5 18 4 8/09/2018 <NA>