Learn R Programming

ggplot2 (version 0.9.1)

label_bquote: Label facet with 'bquoted' expressions

Description

See bquote for details on the syntax of the argument. The label value is x.

Usage

label_bquote(expr = beta^.(x))

Arguments

expr
labelling expression to use

See Also

plotmath

Other facet labellers: label_both, label_parsed, label_value

Examples

Run this code
p <- qplot(wt, mpg, data = mtcars)
p + facet_grid(. ~ vs, labeller = label_bquote(alpha ^ .(x)))
p + facet_grid(. ~ vs, labeller = label_bquote(.(x) ^ .(x)))

Run the code above in your browser using DataLab