Learn R Programming

ggplot2 (version 1.0.0)

label_parsed: Label facets with parsed label.

Description

Label facets with parsed label.

Usage

label_parsed(variable, value)

Arguments

variable
variable name passed in by facetter
value
variable value passed in by facetter

See Also

plotmath

Other facet labellers: label_both; label_bquote; label_value

Examples

Run this code
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)

Run the code above in your browser using DataLab