Skip to content
Back to formatted view

Raw Message

Message-ID: <A7443591-053B-4522-8F3E-B63D3E3A8D2E@dcn.davis.ca.us>
Date: 2016-04-20T22:48:51Z
From: Jeff Newmiller
Subject: overlay two facet_grid
In-Reply-To: <1264450772.6793560.1461189703268.JavaMail.yahoo@mail.yahoo.com>

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Overlaying aesthetics is possible. Overlaying graphs is not. Without sample data, concrete examples will be unlikely to  appear, so read the above link and pay attention to the dput function. 
-- 
Sent from my phone. Please excuse my brevity.

On April 20, 2016 3:01:43 PM PDT, "ch.elahe via R-help" <r-help at r-project.org> wrote:
>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
>
>______________________________________________
>R-help at 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.

	[[alternative HTML version deleted]]