combine_vars {ggplot2} | R Documentation |
Take input data and define a mapping between facetting variables and ROW, COL and PANEL keys
combine_vars(data, env = emptyenv(), vars = NULL, drop = TRUE)
data |
A list of data.frames, the first being the plot data and the subsequent individual layer data |
env |
The environment the vars should be evaluated in |
vars |
A list of quoted symbols matching columns in data |
drop |
should missing combinations/levels be dropped |
A data.frame with columns for PANEL, ROW, COL, and facetting vars