box | R Documentation |
This function plots a Box-and-Whisker (box) on a given data frame, and uses simplified calls within the function to parse the boxplot by up to 2 variables.
box(df, var1, by1, by2)
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
by1 |
the main independent/predictor variable, |
by2 |
a potential second independent/predictor variable, |
data <- mtcars
box(data,mpg,cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.