pal_rgb
is initialized to a vector of named elements (colors)
to define an alternative (reduced) scenario color scheme
(using red, green, and blue colors).
pal_rgb
An object of class character
of length 16.
See pal
for default color information.
Assign pal <- pal_rgb
to use as default color scheme
throughout the riskyr package.
pal
contains current color information;
init_pal
initializes color information.
Other color palettes:
pal_bwp
,
pal_bw
,
pal_crisk
,
pal_kn
,
pal_mbw
,
pal_mod
,
pal_org
,
pal_unikn
,
pal_vir
Other lists containing current scenario information:
accu
,
freq
,
num
,
pal_bwp
,
pal_bw
,
pal_kn
,
pal_mbw
,
pal_mod
,
pal_org
,
pal_unikn
,
pal_vir
,
pal
,
prob
,
txt_TF
,
txt_org
,
txt
pal_rgb # shows all color names and current values
#> N cond_true cond_false dec_pos dec_neg
#> "#F2F2F2FC" "#E6E6E6FC" "#BFBFBFFC" "#D9D9D9FC" "#B3B3B3FC"
#> dec_cor dec_err hi mi fa
#> "#BFBFBFFC" "#999999FC" "olivedrab4" "tomato3" "lightsalmon2"
#> cr ppv npv txt brd
#> "olivedrab3" "sienna1" "steelblue3" "#000000FC" "#1A1A1AFC"
#> bg
#> "white"
pal_rgb["hi"] # shows the current color for hits (true positives, TP)
#> hi
#> "olivedrab4"
pal_rgb["hi"] <- "gold" # defines a new color for hits (true positives, TP)