R
sina plot
이부일
2020. 2. 23. 17:31
# 양적 자료의 각 점들의 위치와 분포의 상태를 동시에 보여주는 그래프
install.packages("tidyverse")
install.packages("ggforce")
library(tidyverse)
library(ggforce)
# 집단별 sina 그래프
# 집단 : cut
# y축 : price
diamonds %>%
ggplot2::ggplot(mapping = aes(x = cut, y = price, color = cut)) +
ggforce::geom_sina() +
ggplot2::theme_classic()