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.

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
#>          N  cond_true cond_false    dec_pos    dec_neg    dec_cor    dec_err 
#>    "white"    "white"    "white"    "white"    "white"    "white"    "white" 
#>         hi         mi         fa         cr        ppv        npv        txt 
#>    "white"    "white"    "white"    "white"    "black"    "black"    "black" 
#>        brd         bg 
#>    "black"    "white" 
pal_bwp["hi"]  # shows the current color for hits (true positives, TP)
#>      hi 
#> "white" 
pal_bwp["hi"] <- "gold" # defines a new color for hits (true positives, TP)