Data Science Desktop Survival Guide
by Graham Williams |
|||||
Violin Plot |
Raw
ds %>%
mutate(year=factor(format(ds$date, "%Y"))) %>% ggplot(aes(x=year, y=max_temp, fill=year)) + geom_violin() + theme(legend.position="none")
A violin plot is another interesting way to present a distribution, using a shape that resembles a violin. We again use colour to improve the visual appeal of the plot.
|