[R] How to stack two Stack manhattan plots?
@okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Thu Jun 11 16:59:37 CEST 2020
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
On Thu, Jun 11, 2020 at 9:26 AM <cpolwart using chemo.org.uk> wrote:
> On 2020-06-11 14:54, Ana Marija wrote:
> > Hello,
> > I expected it to look like this:
> > https://imgur.com/a/pj40c
> Ah - so all on the one plot? - so you don't want a facet. It puts two
> plots side by side (or 22)
> > where x-axis would be CHR, there is 22 of them
> >> unique(tmp.tidy$CHR)
> >  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
> You have 22 plots all appearing side by size as part of the facet
> I think you want color=CHR - but I don't know what your current color
> setting is doing.
> > I also have two phenotypes (keys) which I would like to compare
> >> unique(tmp.tidy$key)
> >  "Pold" "Pnew"
> So did you want to Facet those?
More information about the R-help