plotRegionCol: Add color to plot region

View source: R/plotRegionCol.R

plotRegionColR Documentation

Add color to plot region

Description

Add color to plot region

Usage

plotRegionCol(col = "grey90", grid = FALSE, grid.col = "white", ...)

Arguments

col

Color string or number. Color of plot region (Defaut: "grey90")

grid

Logical. Add grid on top of plot region color (Default: FALSE)

grid.col

color of grid lines (Default: "white")

...

Other arguments to pass to grid

Value

adds color to plot region and optional grid

Examples

plot(dist~speed, data=cars)
plotRegionCol()
points(dist~speed, data=cars, pch=21, bg="white")

# with grid
plot(dist~speed, data=cars)
plotRegionCol(grid=TRUE)
points(dist~speed, data=cars, pch=21, bg="cyan")

# with grid plus addition settings
plot(dist~speed, data=cars)
plotRegionCol(col="grey30", grid=TRUE, grid.col="grey50", lwd=0.5)
points(dist~speed, data=cars, pch=21, bg="white")


marchtaylor/sinkr documentation built on July 4, 2022, 5:48 p.m.