vipor | R Documentation |
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
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
Scott Sherrill-Mix, shescott@upenn.edu
https://github.com/sherrillmix/vipor
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.