Try the following codes:
qq<-ggplot(data=p,aes(x,y))+geom_polygon(fill="light blue",alpha=0.5)
qq+geom_line(data=n,aes(x,y),colour="red",size=1,linetyp=4)+
facet_grid(.~g)
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example:
https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
Just need to add another layer as follows:
qq<-ggplot(data=p,aes(x,y))+geom_polygon(fill="light blue",alpha=0.5)
qq+geom_line(data=n,aes(x,y),colour="red",size=1,linetyp=4)+
geom_line(data=r,aes(y1,y2),colour="blue",size=1,linetype=2)+
facet_grid(.~g)