2. histogram
주로 binwidth옵션을 사용하여 그래프 조정합니다.
xxxxxxxxxx
ggplot(STOCK) +
geom_histogram(aes(x = High , fill = ..x.. ),
binwidth = 1000) +
scale_fill_gradient(low = "#CCE5FF", high = "#FF00FF") +
theme_classic() + labs(fill = "Labels Name")
ggplot(STOCK) +
geom_histogram(aes(x = High , fill = Day ),
binwidth = 1000, alpha = 0.4) +
theme_classic() + labs(fill = "Labels Name")
ggplot(STOCK) +
geom_histogram(aes(x = High , fill = Day ),
binwidth = 1000, alpha = 0.4, position = "dodge") +
theme_classic() + labs(fill = "Labels Name")
댓글
댓글 쓰기