View source: R/plotRegionCol.R
plotRegionCol | R Documentation |
Add color to plot region
plotRegionCol(col = "grey90", grid = FALSE, grid.col = "white", ...)
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 |
adds color to plot region and optional grid
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.