View source: R/ggbetweenstats_wrapper.R
ggbetweenstats_wrapper | R Documentation |
â (grouped_)ggbetweenstatsâ
in ggstatsplot
A combination of box and violin plots along with jittered data points for between-subjects designs with statistical details included in the plot as a subtitle.
Remove outliers from violin plot for clarity, while using all of the data for pairwise test and boxplot.
Remove useless parameters for outliers.
ggbetweenstats_wrapper(
data,
x,
y,
facet = TRUE,
grouping.var = NULL,
plotgrid.args = list(),
annotation.args = list(),
...
)
data |
A dataframe (or a tibble) from which variables specified are to be taken. Other data types (e.g., matrix,table, array, etc.) will not be accepted. |
x |
The grouping (or independent) variable from the dataframe |
y |
The response (or outcome or dependent) variable from the dataframe |
facet |
whether to use |
grouping.var |
A single grouping variable (can be entered either as a bare name |
plotgrid.args |
A |
annotation.args |
A |
plot.type |
Character describing the type of plot. Currently supported
plots are |
xlab , ylab |
Labels for |
pairwise.comparisons |
Logical that decides whether pairwise comparisons
are to be displayed (default: |
p.adjust.method |
Adjustment method for p-values for multiple
comparisons. Possible methods are: |
pairwise.display |
Decides which pairwise comparisons to display. Available options are:
You can use this argument to make sure that your plot is not uber-cluttered when you have multiple groups being compared and scores of pairwise comparisons being displayed. |
bf.prior |
A number between |
bf.message |
Logical that decides whether to display Bayes Factor in
favor of the null hypothesis. This argument is relevant only for
parametric test (Default: |
results.subtitle |
Decides whether the results of statistical tests are
to be displayed as a subtitle (Default: |
title |
The text for the plot title. |
subtitle |
The text for the plot subtitle. Will work only if
|
caption |
The text for the plot caption. |
outlier.coef |
Coefficient for outlier detection using Tukey's method.
With Tukey's method, outliers are below (1st Quartile) or above (3rd
Quartile) |
centrality.plotting |
Logical that decides whether centrality tendency
measure is to be displayed as a point with a label (Default:
If you want default centrality parameter, you can specify this using
|
centrality.type |
Decides which centrality parameter is to be displayed.
The default is to choose the same as
Just as |
point.args |
A list of additional aesthetic arguments to be passed to
the |
violin.args |
A list of additional aesthetic arguments to be passed to
the |
ggplot.component |
A |
package , palette |
Name of the package from which the given palette is to
be extracted. The available palettes and packages can be checked by running
|
centrality.point.args , centrality.label.args |
A list of additional aesthetic
arguments to be passed to |
ggsignif.args |
A list of additional aesthetic
arguments to be passed to |
Originally by Indrajeet Patil
Wrapped by Yujie Liu
https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggbetweenstats.html
ggstatsplot::ggbetweenstats()
and ggstatsplot::grouped_ggbetweenstats()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.