[R] overlay two facet_grid

chalabi.elahe at yahoo.de chalabi.elahe at yahoo.de
Thu Apr 21 00:01:43 CEST 2016


Hi all,
Does anyone know how to overlay two facet_grids? I have two facet grids as following:


ggplot(data=df,aes(x=TE,y=TR,color="orange"))+geom_point()+facet_grid(FS+TRJ~OR+INV,labeller=label_both)+xlim(0,200)+ylim(0,10000)
ggplot(data=df,aes(x=TE,y=TR))+geom_point(aes(color=TST))+facet_grid(FS+TRJ~OR+INV,labeller=label_both)+xlim(0,200)+ylim(0,10000)

Thanks for any help!
Elahe



More information about the R-help mailing list