# NOT RUN {
# Example with background grid
ggplot(iris, aes(x = Sepal.Length, y = Species, group = Species)) +
geom_joy(rel_min_height = 0.005) +
scale_y_discrete(expand = c(0.01, 0)) +
scale_x_continuous(expand = c(0.01, 0)) +
theme_joy()
# Example without background grid
ggplot(iris, aes(x = Sepal.Length, y = Species, group = Species)) +
geom_joy() +
scale_y_discrete(expand = c(0.01, 0)) +
scale_x_continuous(expand = c(0.01, 0)) +
theme_joy(grid = FALSE)
# }
Run the code above in your browser using DataLab