addGridIfTrue: Add a Grid if the First Argument is TRUE

View source: R/main.R

addGridIfTrueR Documentation

Add a Grid if the First Argument is TRUE

Description

Add a Grid if the First Argument is TRUE

Usage

addGridIfTrue(
  plot.grid,
  xPositions,
  yPositions = graphics::axTicks(2),
  col = "grey",
  lty = 3,
  ...
)

Arguments

plot.grid

logical. if TRUE the grid is plotted, else not.

xPositions

x positions of the vertical grid lines

yPositions

y positions of the horizontal grid lines

col

colour of the grid lines, passed to abline

lty

line type of the grid lines, passed to abline

...

additional arguments passed to abline


KWB-R/kwb.plot documentation built on Oct. 2, 2023, 10:16 p.m.