removeGrid(x = TRUE, y = TRUE) removeGridX() removeGridY()
removeGrid removes the major grid lines from the x and/or y axis (both by default).
removeGrid
removeGridX is a shortcut for removeGrid(x = TRUE, y = FALSE)
removeGridX
removeGrid(x = TRUE, y = FALSE)
removeGridY is a shortcut for removeGrid(x = FALSE, y = TRUE)
removeGridY
removeGrid(x = FALSE, y = TRUE)
df <- data.frame(x = 1:50, y = 1:50) p <- ggplot2::ggplot(df, ggplot2::aes(x, y)) + ggplot2::geom_point() p + removeGrid() p + removeGrid(y = FALSE) p + removeGridX()
Run the code above in your browser using DataLab