vipor {vipor} | R Documentation |
Functions to generate violin scatter plots
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 https://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
https://github.com/sherrillmix/vipor
Examples
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)
[Package vipor version 0.4.7 Index]