setfacets {ggplot} | R Documentation |
Set the function that controls how the plot is facetted into multiple panels.
setfacets(p = .PLOT, formula = . ~ . , margins = FALSE)
p |
plot object, if not specified will use current plot |
formula |
formula describing row and column layout, see reshape for more details |
margins |
a vector of names giving which margins to display, can include grand_row and grand_col or uss TRUE to display all margins |
Hadley Wickham <h.wickham@gmail.com>