display.all.met | R Documentation |
Function for viewing all palettes available in MetBrewer.
display.all.met(
n,
sequential = FALSE,
colorblind_only = FALSE,
direction = 1,
override_order = FALSE
)
n |
Number of requested colors. If n is left blank, default palette is returned. |
sequential |
Should palettes displayed all at once, or one at a time. Default is all at once (FALSE). |
colorblind_only |
Should only colorblind friendly palettes be returned? Default is set to FALSE. |
direction |
Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed |
override_order |
Colors are picked from palette to maximize readability and aesthetics. This means that colors are not always selected in sequential order from the full palette. If override_order is set to TRUE, colors are selected in sequential order from the full palette instead. Default is FALSE. |
# All Palettes
display.all.met(sequential = FALSE, colorblind_only = FALSE)
# All Colorblind Palettes
display.all.met(sequential = FALSE, colorblind_only = TRUE)
# 5 Colors of all Palettes
display.all.met(5, sequential = FALSE, colorblind_only = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.