label_parsed {ggplot2} | R Documentation |
Parses the facet label, as if
label_parsed(variable, value)
variable |
|
value |
Hadley Wickham <h.wickham@gmail.com>
mtcars$cyl2 <- factor(mtcars$cyl, labels = c("alpha", "beta", "gamma")) qplot(wt, mpg, data = mtcars) + facet_grid(. ~ cyl2) qplot(wt, mpg, data = mtcars) + facet_grid(. ~ cyl2, labeller = label_parsed)