我需要像这样在同一图中绘制2个数据框:
我必须对数据框: enter image description here
我只需要绘制y =“ mean.EVI.in.polys”和Date x =“ julianday”
这是我的脚本,但仅是一张包含2个数据的图形,我需要绘制图形
years<- ggplot(data, aes(x= Date, y=mean.EVI.in.polys), na.rm=TRUE) +
geom_point(size=4,colour = "PeachPuff4")+
geom_line(color = "blue", size = 1) + xlab("Date") +
ggtitle(" mean of EVI.allyears ") + ylab("Mean of EVI.allyears (Scale Factor = 0.0001)")+
theme(text = element_text(size=10))+theme_classic()+scale_y_continuous(name="Mean of EVI.all_years (Scale Factor = 0.0001)", limits=c(0.2, 0.69))+
theme_bw()
plot(years)