[R] How to stack two Stack manhattan plots?

cpoiw@rt m@iii@g oii chemo@org@uk cpoiw@rt m@iii@g oii chemo@org@uk
Thu Jun 11 18:52:38 CEST 2020


On 2020-06-11 15:59, Ana Marija wrote:
> yes all in one plot.
> So I want key (and therefore color)to be "Pold" and "Pnew" as those I
> am comparing per CHR
> so I used facet_wrap(~CHR) to create a graph per chromosome (on x-axis)
> On the end x-axis would have two strikes of Pold and Pnew (different
> colors) per one chromosome, and CHR would go from 1 to 22
> 


ggplot( data = tmp.tidy) +
geom_point( aes(
             y = BP,
             x = CHR,
             color=key) )

?



More information about the R-help mailing list