label_both {ggplot2} | R Documentation |
Join together facet value and the name of the variable to create a label.
label_both(variable, value)
variable |
|
value |
Hadley Wickham <h.wickham@gmail.com>
p <- qplot(wt, mpg, data = mtcars) p + facet_grid(~ cyl) p + facet_grid(~ cyl, labeller = label_both)