library(ggplot2)
# theme_minimal_grid()
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
geom_point() + theme_minimal_grid()
# theme_minimal_hgrid()
ggplot(mtcars, aes(x = carb)) +
geom_bar(fill = "lightblue") +
scale_y_continuous(limits = c(0, 11.5), expand = c(0, 0)) +
theme_minimal_hgrid()
# theme_minimal_vgrid()
ggplot(mtcars, aes(x = carb)) +
geom_bar(fill = "lightblue") +
scale_y_continuous(limits = c(0, 11.5), expand = c(0, 0)) +
coord_flip() +
theme_minimal_vgrid()
Run the code above in your browser using DataLab