R 視覺化最佳實務
Nick Strayer
Instructor

Beeswarm 圖

Violin 圖

ggbeeswarm 套件中有 geom_beeswarm() 可用。library(ggbeeswarm)
ggplot(data, aes(y = y, x = group)) +
geom_beeswarm(color = 'steelblue')



geom_boxplot() 換成 geom_violin()。ggplot(data, aes(y = y, x = group)) +
geom_violin(fill = 'steelblue')



R 視覺化最佳實務