pal_vir | R Documentation |
pal_vir
is initialized to a vector of named elements (colors)
to define a scenario color scheme modeled on the viridis
color scale.
pal_vir
An object of class character
of length 16.
These colors are select by the Matplotlib viridis
color map
created by Stéfan van der Walt and Nathaniel Smith.
See the viridisLite
package (maintained by Simon Garnier)
for further information.
Assign pal <- pal_vir
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_rgb
,
pal_unikn
Other lists containing current scenario information:
accu
,
freq
,
num
,
pal_bwp
,
pal_bw
,
pal_kn
,
pal_mbw
,
pal_mod
,
pal_org
,
pal_rgb
,
pal_unikn
,
pal
,
prob
,
txt_TF
,
txt_org
,
txt
pal_vir # shows all color names and current values pal_vir["hi"] # shows the current color for hits (true positives, TP) pal_vir["hi"] <- "green3" # defines a new color for hits (true positives, TP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.