I tried it, ggplot( data = tmp.tidy) +geom_point( aes(y = BP,x = CHR,color=key) ,position = "jitter" ) I got the attached
On Thu, Jun 11, 2020 at 4:18 PM <cpolw...@chemo.org.uk> wrote: > > Try adding > position = "jitter" to the geom_point(... > > > > On 11 Jun 2020 21:41, Ana Marija <sokovic.anamar...@gmail.com> wrote: > > Hello, > > I tried your code and this is what I got > > I really need two groups side by side shown per chromosome as it is here: > https://imgur.com/a/pj40c > on the image there are 4 groups I do have only two > > On Thu, Jun 11, 2020 at 11:52 AM <cpolw...@chemo.org.uk> wrote: > > > > 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) ) > > > > ? > > ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.