vennvis: Visualise the relation between two variables as circles

Description Usage Arguments Details Examples

Description

Using a venn diagram where the overlap indicates the covariance between two variables and the area of the circles indicates the variance of each.

Usage

1
vennvis(x, y, z, scale = FALSE, plot = TRUE, plotOpts)

Arguments

x

a base variable or a matrix/data frame with 2/3 variables

y

a comparison variable

z

an optional third variable

scale

whether to scale the variables

plot

whether to plot, default TRUE

plotOpts

named list of custom plot options; see details

Details

There are several custom options that can be added to the plotOpts argument:

Examples

1
2
3
4
5
6
7
set.seed(147289)
x <- rnorm(100)
y <- 0.5*x+rnorm(100, 0.25)
vennvis(x, y)

z <- 0.3*x+0.4*y+rnorm(100, 0.15)
vennvis(x, y, z)

vankesteren/vennvis documentation built on May 31, 2019, 8:50 p.m.