The sinaplot is a data visualization chart suitable for plotting any single variable in a multiclass data set. It is an enhanced jitter strip chart, where the width of the jitter is controlled by the density distribution of the data within each class.
The sinaplot is a data visualization chart suitable for plotting any single variable in a multiclass dataset. It is an enhanced jitter strip chart, where the width of the jitter is controlled by the density distribution of the data within each class.
Get the released version from CRAN:
Or the development version from github:
In order to aid users without experience in R we also provide access to a webserver accepting excel sheets to produce the plots.
Changes in version 1.1.0 (2017-04-10)
Major fucntional update. Sinaplot now works with data frames, lists, numeric vectors and formulas, similar to boxplot and beeswarm.
Method "density" (default) no longer bins the y-axis on based on the supplied "bins" parameter. Instead the inferred bins from function "density()" are used.
A random seed is added as an optional argument and can be used to control the random sample jittering and allow for plot reproducibility.
NA's are automatically removed. A warning is thrown if NA values are present in the data informing about the number of cases removed.
"labels" parameter controls the x-axis labels. Label rotation is removed. It is up to the user to control the label appearance.
sinaplot returns an invisible object regardless of "plot" parameter. "bin_count" column is removed from the output.
"color" is renamed to "col" to maintain consistency with 'graphics' functions.
"col" and "pch" can be used and recycled if necessary to control the color and the shape of the points respectively.
sinaplot can be added on top of other plots (i.e. boxplot) by using the 'add' parameter.
Changes in version 1.0.0 (2016-10-11)
Major graphic update. SinaPlot now uses "base" graphics instead of ggplot2. geom_sina() is now part of ggforce (https://github.com/thomasp85/ggforce), an extention of ggplot2, and can be used to produce sinaplots with ggplot2.
Major functional update. Several parameters have been added, renamed, replaced or removed. Read below for details.
If "plot == FALSE" the function returns a data frame with columns:
x: discrete x-coordinates, split by group y: input values group: input groups bin_count: number of samples per bin per group scaled: final x-coordinates, adjusted by the sinaplot method
Changes in version 0.1.6 (2016-07-08)
Changes in version 0.1.5 (2016-05-14)
Changes in version 0.1.4 (2016-04-19)
Changes in version 0.1.3 (2015-11-20)
Changes in version 0.1.2 (2015-10-02)