r - How to combine multiple multiline graphs (common x axis) ggplot? -
i have 5 plots contain 4 lines (two of them below):
g1<-ggplot(df)+geom_line (aes(x=time, y=z1, color="a"))+geom_line (aes(x=time, y=z6, color="b"))+ geom_line (aes(x=time, y=z11, color="c"))+geom_line (aes(x=time, y=z16, color="d"))+ scale_color_discrete(name="")+labs(title="") g2<-ggplot(container)+geom_line (aes(x=time, y=z2, color="a"))+geom_line (aes(x=time, y=z7, color="b"))+ geom_line (aes(x=time, y=z12, color="c"))+geom_line (aes(x=time, y=z17, color="d"))+ scale_color_discrete(name="")+labs(title="")
now want order in column common x axis , separate y axes. in post. however, can not find solution.
Comments
Post a Comment