pal_bwp {riskyr} | R Documentation |
Alternative color palette for black-and-white graphs (for printing purposes).
Description
pal_bwp
is initialized to a vector of named elements (colors)
to define a strict (black-and-white, b/w) scenario color scheme
that is suited for printing graphs in black-and-white.
Usage
pal_bwp
Format
An object of class character
of length 16.
Details
pal_bwp
is a stricter version of the greyscale
palette pal_bw
that enforces
black text and lines on white boxes. Thus, the bounds of frequency boxes
are invisible on white backgrounds unless the default of
f_lwd = 0
is changed (e.g., to f_lwd = 1
).
Some background colors (of frequencies) are also used as
foreground colors (of probabilities, e.g.,
in plot_curve
and plot_plane
).
For this reason, the plotting functions detect and
adjust colors and/or line settings when pal_bwp
is used.
See pal_bw
for a more permissible black-and-white
palette that uses various shades of grey for frequency boxes
so that their bounds remain visible on a white background
when f_lwd = 0
(as per default for most graphs).
See pal
for default color information.
Assign pal <- pal_bwp
to use as default color scheme
throughout the riskyr package.
See Also
pal
contains current color information;
init_pal
initializes color information.
Other color palettes:
pal_bw
,
pal_crisk
,
pal_kn
,
pal_mbw
,
pal_mod
,
pal_org
,
pal_rgb
,
pal_unikn
,
pal_vir
Other lists containing current scenario information:
accu
,
freq
,
num
,
pal_bw
,
pal_kn
,
pal_mbw
,
pal_mod
,
pal_org
,
pal_rgb
,
pal_unikn
,
pal_vir
,
pal
,
prob
,
txt_TF
,
txt_org
,
txt
Examples
pal_bwp # shows all color names and current values
pal_bwp["hi"] # shows the current color for hits (true positives, TP)
pal_bwp["hi"] <- "gold" # defines a new color for hits (true positives, TP)