label_both {ggplot2}R Documentation

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

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

[Package ggplot2 version 0.9.3.1 Index]