split_plot | R Documentation |
Split a data frame on a single factor and create a plot from each chunk.
Each plot is labeled with the value of sp
using ggplot2::facet_wrap()
.
See examples.
split_plot(df, fun, sp = get_split_col(df), labeller = label_tex, ...)
df |
Data frame to split and plot. |
fun |
Function to use to plot. |
sp |
Character name of column to split; if |
labeller |
A labeller to pass to |
... |
passed to |
A list of plots, one for each grouping in sp
.
df <- pmplots_data_obs()
require(dplyr)
df %>% group_by(STUDYc) %>% split_plot(dv_pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.