label_both {ggplot2}R Documentation

Label facets with value and variable

Description

Join together facet value and the name of the variable to create a label.

Usage

label_both(variable, value)

Arguments

variable
value

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

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

[Package ggplot2 version 0.8.5 Index]