add_grid: Add grid to a plot

View source: R/graph_utils.R

add_gridR Documentation

Add grid to a plot

Description

Add grid to a plot using abline.

Usage

add_grid(
  at_x = NULL,
  at_y = NULL,
  col = "lightgray",
  lty = "dotted",
  lwd = 1,
  ...
)

Arguments

at_x

x axis grid values

at_y

y axis grid values

col

grid color

lty

line type

lwd

line width

...

further parameter passed to abline

Value

The function adds a grid to a plot using abline.


lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.