plotcorr: plotcorr

View source: R/teaching_utils.R

plotcorrR Documentation

plotcorr

Description

plotcorr

Usage

plotcorr(
  mux = 0,
  muy = 0,
  n,
  sdx = 1,
  sdy = 1,
  r,
  marginal = FALSE,
  type = "boxplot"
)

Arguments

marginal

logical; if TRUE two univariate boxplots are placed outside the main plot

data

dataframe; the result of a 'rcorr' function call

Value

a ggplot object

Examples

dat <- rcorr(n = 100, r = 0.5)
plotcorr(dat, marginal = TRUE)

filippogambarota/filippoR documentation built on March 6, 2023, 4:22 a.m.