ggbeeswarm: ggbeeswarm extends ggplot2 with violin point/beeswarm plots

Description Author(s) See Also Examples

Description

This package allows plotting of several groups of one dimensional data as a violin point/beeswarm plot by arraning data points to resemble the underlying distribution. The development version of this package is on http://github.com/eclarke/ggbeeswarm.

Author(s)

Erik Clarke, ecl@mail.med.upenn.edu

See Also

position_quasirandom

Examples

1
2
3
4
5
6
7
8
  ggplot2::qplot(class, hwy, data = ggplot2::mpg, position=position_quasirandom())
  # Generate fake data
  distro <- data.frame(
    'variable'=rep(c('runif','rnorm'),each=100),
    'value'=c(runif(100, min=-3, max=3), rnorm(100))
  )
  ggplot2::qplot(variable, value, data = distro, position = position_quasirandom())
  ggplot2::qplot(variable, value, data = distro, position = position_quasirandom(width=0.1))


Search within the ggbeeswarm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.