library(ggplot2)
# default scales
ggplot(iris, aes(x=Sepal.Length, y=Species, fill = Species, color = Species)) +
geom_density_ridges(
aes(vline_color = Species, vline_linetype = Species),
alpha = .4, quantile_lines = TRUE
) +
theme_ridges()
# modified scales
ggplot(iris, aes(x=Sepal.Length, y=Species, fill = Species, color = Species)) +
geom_density_ridges(
aes(vline_color = Species),
alpha = .4, quantile_lines = TRUE
) +
scale_fill_hue(l = 50) +
scale_vline_color_hue(l = 30) +
theme_ridges()
Run the code above in your browser using DataLab