setting ylim for facet_grid with different ylim for each row of plots

200 views
Skip to first unread message

MarcS

unread,
May 24, 2011, 5:27:04 PM5/24/11
to ggplot2
Hi All --

I've a figure I'm trying to make with different scales for different
rows (different experimental specimens) treated under different
conditions (as columns). The different specimens have different means,
so free_y works fine to display all the data, BUT, I'd like to set
ylim for each row of plots to cover +/- 10% of the median level.

I can do separate facet_wrap graphs for each specimen, but would
really like all 6 specimens to be on the same page to enable
comparisons.

Separate facet_wrap graph:
https://www.me.com/ro/msalit/Galleries/100124/110524%20ercc4/web.jpg?ver=13062722460001

and grid of graphs, with scales set by "free_y":
https://www.me.com/ro/msalit/Galleries/100124/110524%20grid%20plot/web.jpg?ver=13062722430001

Thanks in advance,
Marc

Luciano Selzer

unread,
May 24, 2011, 7:50:05 PM5/24/11
to MarcS, ggplot2
Marc, it says unathorized when I try to open your links.
Luciano


2011/5/24 MarcS <msa...@gmail.com>

--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442

To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2

MarcS

unread,
May 24, 2011, 11:31:18 PM5/24/11
to ggplot2
Sorry for the bad links... Try these:

http://gallery.me.com/msalit/100124/110524%20ercc4
http://gallery.me.com/msalit/100124/110524%20grid%20plot

Thanks again -
Marc

On May 24, 7:50 pm, Luciano Selzer <luciano.sel...@gmail.com> wrote:
> Marc, it says unathorized when I try to open your links.
> Luciano
>
> 2011/5/24 MarcS <msa...@gmail.com>
>
>
>
> > Hi All --
>
> > I've a figure I'm trying to make with different scales for different
> > rows (different experimental specimens) treated under different
> > conditions (as columns). The different specimens have different means,
> > so free_y works fine to display all the data, BUT, I'd like to set
> > ylim for each row of plots to cover +/- 10% of the median level.
>
> > I can do separate facet_wrap graphs for each specimen, but would
> > really like all 6 specimens to be on the same page to enable
> > comparisons.
>
> > Separate facet_wrap graph:
>
> >https://www.me.com/ro/msalit/Galleries/100124/110524%20ercc4/web.jpg?...
>
> > and grid of graphs, with scales set by "free_y":
>
> >https://www.me.com/ro/msalit/Galleries/100124/110524%20grid%20plot/we...
Reply all
Reply to author
Forward
0 new messages