[R] ggplot2: override facet names in facet_wrap?

hadley wickham h.wickham at gmail.com
Wed Aug 12 04:06:06 CEST 2009


Have a look at the code and examples of label_value and label_both.
They should suggest how to write your own labeller to do what you
want.

Hadey

On Tue, Aug 11, 2009 at 1:44 PM, Ben Bolker<bolker at ufl.edu> wrote:
>
>  just a quick question (to which I suspect the answer is "no"):
> does anyone know if, in the ggplot2 package, there's a way to
> override the default names of the facets in facet_wrap (which
> correspond to the levels of the factor used to facet)?  I know
> that I go back and change the levels of the factor, but it would
> be convenient to be able to supply a vector of level names at
> the time of plotting ...
>
>  cheers
>    Ben Bolker
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>
>



-- 
http://had.co.nz/




More information about the R-help mailing list