rplots | R Documentation |
Box & Violin Plots
rplots(
data,
vars,
splitBy = NULL,
violin = TRUE,
boxplot = FALSE,
dot = TRUE,
dotType = "stack"
)
data |
the data as a data frame |
vars |
a vector of strings naming the variables in |
splitBy |
a string naming the variable in |
violin |
|
boxplot |
|
dot |
|
dotType |
|
A results object containing:
results$plots | an array of images | ||||
data('eurosoccer', package='WRS2')
# violin plots
walrus::rplots(
data = eurosoccer,
vars = "GoalsGame",
splitBy = "League")
# box plots
walrus::rplots(
data = eurosoccer,
vars = "GoalsGame",
splitBy = "League",
violin = FALSE,
boxplot = TRUE,
dot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.