add_group {ggplot2} | R Documentation |
Ensure that the data frame contains a grouping variable.
add_group(data)
data |
data.frame |
If the group
variable is not present, then a new group
variable is generated from the interaction of all discrete (factor or
character) vectors excluding label.
data.frame with group variable
Hadley Wickham <h.wickham@gmail.com>