Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gridlines

Add and remove gridlines


Description

These are convenience wrappers for editing ggplot2::theme()'s panel.grid.major and panel.grid.minor parameters with sensible defaults.

Usage

add_gridlines(x = TRUE, y = TRUE, minor = TRUE)

add_x_gridlines(minor = TRUE)

add_y_gridlines(minor = TRUE)

drop_gridlines(x = TRUE, y = TRUE, minor.only = FALSE)

drop_x_gridlines(minor.only = FALSE)

drop_y_gridlines(minor.only = FALSE)

Arguments

x

Apply changes to the x axis?

y

Apply changes to the y axis?

minor

Add minor gridlines in addition to major?

minor.only

Remove only the minor gridlines?


jtools

Analysis and Presentation of Social Scientific Data

v2.1.3
MIT + file LICENSE
Authors
Jacob A. Long [aut, cre] (<https://orcid.org/0000-0002-1582-6214>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.