vipor: Functions to generate violin scatter plots

Description Details Author(s) See Also Examples

Description

Arranges data points using quasirandom noise (van der Corput sequence) to create a plot resembling a cross between a violin plot (showing the density distribution) and a scatter plot (showing the individual points). The development version of this package is on http://github.com/sherrillmix/vipor

Details

The main functions are:

offsetX:

calculate offsets in X position for plotting (groups of) one dimensional data

vpPlot:

a simple wrapper around plot and offsetX to generate plots of grouped data

Author(s)

Scott Sherrill-Mix, shescott@upenn.edu

See Also

http://github.com/sherrillmix/vipor

Examples

1
2
3
4
dat<-list(rnorm(100),rnorm(50,1,2))
ids<-rep(1:length(dat),sapply(dat,length))
offset<-offsetX(unlist(dat),ids)
plot(unlist(dat),ids+offset)

vipor documentation built on May 1, 2019, 7:06 p.m.