[R] ggplot2: override facet names in facet_wrap?
bolker at ufl.edu
Wed Aug 12 05:00:30 CEST 2009
Thanks. I can get it to work for facet_grid (which will do for my current
purposes) but am curious about whether there's a way to do the same
for facet_wrap (which doesn't have a "labeller" argument)?
> 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
> 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 ...
>> Ben Bolker
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/ggplot2%3A-override-facet-names-in-facet_wrap--tp24923516p24929216.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help