The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

ggplot.multistats Workflow badge

ggplot.multistats currently provides stat_summaries_hex and some helpers.

stat_summaries_hex is similar to ggplot2::stat_summary_hex, but allows specifying multiple stats using the funs parameter (see Example).

Installation

ggplot.multistats is not yet on CRAN. Install it using the devtools package from GitHub:

# install.packages('devtools')
devtools::install_github('flying-sheep/ggplot.multistats')

Example

Specify a summary variable using the z aesthetic and specify a list of funs to provide stats for you:

library(ggplot2)
library(ggplot.multistats)

ggplot(iris, aes(Sepal.Width, Sepal.Length)) +
  stat_summaries_hex(
    aes(z = Petal.Width, fill = stat(median), alpha = stat(n)),
    funs = c('median', n = 'length'),
    bins = 5
  )

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.