plot_bg: Add a background color to a plot

View source: R/plot_bg.R

plot_bgR Documentation

Add a background color to a plot

Description

Displays a colored rectangle over the entire area of a plot

Usage

plot_bg(col="lightgray")

Arguments

col

The color of the background

Details

⁠plot_bg⁠’ is probably only useful when part of the ‘⁠do.first⁠’ argument in another plot function to add a background color to the plot.

Value

nil

Author(s)

Jim Lemon

Examples

 barp(1:5,do.first="plot_bg()",col=1:5)

plotrix/plotrix documentation built on Feb. 19, 2024, 8:16 a.m.