eclarke / ggbeeswarm

Column scatter / beeswarm-style plots in ggplot2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example ?ggbeeswarm does not work (again)

agricolamz opened this issue · comments

Like in #30.

library(ggplot2)
library(ggbeeswarm)

ggplot2::qplot(class, hwy, data = ggplot2::mpg, position = position_quasirandom())

image

distro <- data.frame(
  'variable'=rep(c('runif','rnorm'),each=100),
  'value'=c(runif(100, min=-3, max=3), rnorm(100))
)
ggplot(distro,aes(variable, value)) +
  geom_beeswarm(priority='density',size=2.5)

image

> packageVersion("ggbeeswarm")
[1] ‘0.7.0’
> packageVersion("ggplot2")
[1] ‘3.3.3’
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=ru_RU.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=ru_RU.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=ru_RU.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=ru_RU.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggbeeswarm_0.7.0 ggplot2_3.3.3   

loaded via a namespace (and not attached):
 [1] magrittr_2.0.1   tidyselect_1.1.0 munsell_0.5.0    colorspace_2.0-0 R6_2.5.0        
 [6] rlang_0.4.10     vipor_0.4.5      dplyr_1.0.4      tools_4.0.3      grid_4.0.3      
[11] beeswarm_0.2.3   gtable_0.3.0     DBI_1.1.1        withr_2.4.1      ellipsis_0.3.1  
[16] digest_0.6.27    assertthat_0.2.1 tibble_3.0.6     lifecycle_0.2.0  crayon_1.4.0    
[21] farver_2.0.3     purrr_0.3.4      vctrs_0.3.6      glue_1.4.2       labeling_0.4.2  
[26] compiler_4.0.3   pillar_1.4.7     generics_0.1.0   scales_1.1.1     pkgconfig_2.0.3