invertColors: Inverting the Plot Device Color Scheme

View source: R/viewers.R

invertColorsR Documentation

Inverting the Plot Device Color Scheme

Description

Function to convert the default plot color scheme to white-on-black.

Usage

invertColors(...)

Arguments

...

Other graphical parameters to be given to par.

Details

This function changes the default color scheme of the current graphics device to white on black. Note that since invertColors resets the bg parameter, you should avoid passing in a new default value for the col parameter.

Value

It returns the original color scheme, which can be passed to the par command to restore the original values.

Author(s)

Kevin R. Coombes <krc@silicovore.com>

See Also

par

Examples

opar <- invertColors()
plot(1:3, 4:6, pch=16)
par(opar)

Polychrome documentation built on May 3, 2022, 9:07 a.m.