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)?
cheers Ben hadley wrote: > > 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<bol...@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@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/ > > ______________________________________________ > R-help@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. > > -- 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. ______________________________________________ R-help@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.