Learn R Programming

ggplot2 (version 0.9.0)

label_value: Label facets with their value. This is the default labelling scheme.

Description

Label facets with their value. This is the default labelling scheme.

Usage

label_value(variable, value)

Arguments

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

See Also

Other facet labellers: label_both, label_bquote, label_parsed

Examples

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

Run the code above in your browser using DataLab