label_bquote {ggplot2} | R Documentation |
Create facet labels which contain the facet label in a larger expression
label_bquote(expr = beta ^ .(x))
expr |
See bquote
for details on the syntax of the argument. The
label value is x.
Hadley Wickham <h.wickham@gmail.com>
p <- qplot(wt, mpg, data = mtcars) p + facet_grid(~ vs, labeller = label_bquote(alpha ^ .(x))) p + facet_grid(~ vs, labeller = label_bquote(.(x) ^ .(x)))