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).
ggplot.multistats
is on CRAN.
install.packages('ggplot.multistats')
You can also install the development version from GitHub:
# install.packages('devtools') devtools::install_github('flying-sheep/ggplot.multistats')
Specify a summary variable using the z
aesthetic and specify a list of funs
to provide after_stat
s for you:
library(ggplot2) library(ggplot.multistats) ggplot(iris, aes(Sepal.Width, Sepal.Length)) + stat_summaries_hex( aes(z = Petal.Width, fill = after_stat(median), alpha = after_stat(n)), funs = c('median', n = 'length'), bins = 5 )
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4