nt_boxplot | R Documentation |
Plot boxplot for several variables.
nt_boxplot(
data,
group = NULL,
labels = NULL,
save = FALSE,
fig.height = 5,
fig.width = 5,
std_fun = std_boxplot,
std_fun_group = std_boxplot_group,
...
)
data |
a data frame with the variables. |
group |
a character value indicating the group variable. |
labels |
a list of labels with components given by their variable names. |
save |
a logical value indicating whether the output should be saved as a jpeg file. |
fig.height |
a numeric value indicating the height (in) of the file. |
fig.width |
a numeric value indicating the width (in) of the file. |
std_fun |
a function to plot a boxplot when |
std_fun_group |
a function to plot a boxplot when |
... |
additional input arguments that may be used when creating your own function. |
The functions std_boxplot
and
std_boxplot_group
can be modified by the user in order to
customize the boxplots a prior.
The plots also can be modified a posterior as a regular ggplot object.
See geom_boxplot
, std_boxplot
and
std_boxplot_group
.
a list of ggplot objects with each item named by the column names from
var
.
data(iris)
iris |> nt_boxplot(group = Species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.