ggplot2 (version 0.9.0)

label_both: Label facets with value and variable.

Description

Label facets with value and variable.

Usage

label_both(variable, value)

Arguments

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

See Also

Other facet labellers: label_bquote, label_parsed, label_value

Examples

Run this code
p <- qplot(wt, mpg, data = mtcars)
p + facet_grid(. ~ cyl)
p + facet_grid(. ~ cyl, labeller = label_both)

Run the code above in your browser using DataCamp Workspace