grouped_ggcorrmat | R Documentation |
Helper function for ggstatsplot::ggcorrmat
to apply this function across
multiple levels of a given factor and combining the resulting plots using
ggstatsplot::combine_plots
.
grouped_ggcorrmat( data, ..., grouping.var, output = "plot", plotgrid.args = list(), annotation.args = list() )
data |
Dataframe from which variables specified are preferentially to be taken. |
... |
Arguments passed on to
|
grouping.var |
A single grouping variable. |
output |
Character that decides expected output from this function. If
|
plotgrid.args |
A |
annotation.args |
A |
For details, see: https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggcorrmat.html
ggcorrmat
, ggscatterstats
,
grouped_ggscatterstats
# for reproducibility set.seed(123) library(ggstatsplot) # for plot if (require("ggcorrplot")) { grouped_ggcorrmat( data = iris, grouping.var = Species, type = "robust", p.adjust.method = "holm", plotgrid.args = list(ncol = 1), annotation.args = list(tag_levels = "i") ) } # for dataframe grouped_ggcorrmat( data = ggplot2::msleep, grouping.var = vore, type = "bayes", output = "dataframe" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.