View source: R/teaching_utils.R
plotcorr | R Documentation |
plotcorr
plotcorr( mux = 0, muy = 0, n, sdx = 1, sdy = 1, r, marginal = FALSE, type = "boxplot" )
marginal |
logical; if TRUE two univariate boxplots are placed outside the main plot |
data |
dataframe; the result of a 'rcorr' function call |
a ggplot object
dat <- rcorr(n = 100, r = 0.5) plotcorr(dat, marginal = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.