label_bquote {ggplot2}R Documentation

Label facet with 'bquoted' expressions

Description

Create facet labels which contain the facet label in a larger expression

Usage

label_bquote(expr = beta ^ .(x))

Arguments

expr

Details

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

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

plotmath

Examples

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

[Package ggplot2 version 0.8.5 Index]