[pre-commit.ci] pre-commit autoupdate (#8) updates: github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
[pre-commit.ci] pre-commit autoupdate (#8)
updates:
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ggplot.multistats currently provides stat_summaries_hex and some helpers.
ggplot.multistats
stat_summaries_hex
stat_summaries_hex is similar to ggplot2::stat_summary_hex, but allows specifying multiple stats using the funs parameter (see Example).
ggplot2::stat_summary_hex
funs
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_stats for you:
z
after_stat
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 )
为 ggplot2 提供多重统计摘要和图层叠加能力。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
ggplot.multistats
ggplot.multistatscurrently providesstat_summaries_hexand some helpers.stat_summaries_hexis similar toggplot2::stat_summary_hex, but allows specifying multiple stats using thefunsparameter (see Example).Installation
ggplot.multistatsis on CRAN.You can also install the development version from GitHub:
Example
Specify a summary variable using the
zaesthetic and specify a list offunsto provideafter_stats for you: