cpr_make_pal | R Documentation |
Palettes can also be loaded by name directly (see "Other colors" below).
cpr_make_pal(name, type)
name |
Character vector of length 1; name of palette to select. Must be one of 'mishler2014', 'canaper1', 'canaper2', 'canaper3', or 'canaper4' |
type |
Character vector of length 1; type of palette to select. Must be one of 'endem' (endemism) or 'signif' (p-rank significance) |
Palettes with the name 'mishler2014' correspond to colors used in Mishler et al. 2014. This color scheme has been widely used to show CANAPE results, but some colors may not be distinguishable to people with color vision deficiency (CVD).
Palettes with the name 'canaper1' or 'canaper2' are based on the Okabe-Ito palette (endemism; Okabe & Ito 2002) or RColorBrewer (significance) and should be CVD-friendly.
Names of colors correspond to either endemism type or
p-rank output by cpr_classify_endem()
or cpr_classify_signif()
,
respectively. Not all names are all available for both types.
Named character vector; color hex codes
Mishler, B., Knerr, N., González-Orozco, C. et al. (2014) Phylogenetic measures of biodiversity and neo- and paleo-endemism in Australian Acacia. Nat Commun, 5: 4473. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1038/ncomms5473")}
Okabe, M., & Ito, K. (2002) Color Universal Design (CUD) - How to make figures and presentations that are friendly to Colorblind people. J*FLY Data Depository for Drosophila Researchers. https://jfly.uni-koeln.de/color/
Other colors:
cpr_endem_cols_2
,
cpr_endem_cols_3
,
cpr_endem_cols_4
,
cpr_endem_cols
,
cpr_signif_cols_2
,
cpr_signif_cols
,
mishler_endem_cols
,
mishler_signif_cols
cpr_make_pal("mishler2014", "endem")
cpr_make_pal("canaper1", "endem")
scales::show_col(cpr_make_pal("mishler2014", "endem"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.