View source: R/WB_subset_brewer.R
WB_subset_brewer | R Documentation |
Function used to create customized continuous/discrete palettes using the palettes in WrensBookshelf, offering more specific control over selected colors than WB_brewer.
WB_subset_brewer( name, n = NA, LCR, type = c("continuous", "discrete"), direction = c(1, -1), n2 = NULL )
name |
Name of palette from WrensBookshelf. |
n |
Number of colors to select/subset. |
LCR |
Location from which you want select n colors from in specified palette ("left","right", "center"). Can also use a vector of specific color numbers within palette (e.g. c(1,4,7)) |
type |
Type of palette you wish to generate ("continuous" or "discrete") |
direction |
Direction you want the palette to proceed; 1 = direction shown in ShowBookshelf() or ShowBook(), -1 = reversed. |
n2 |
If type = "continuous", length of palette to generate. |
Color palette.
WB_subset_brewer(name = "JulienIsAMermaid", n = 5, LCR = "left", type = "continuous", n2 = 200) WB_subset_brewer(name = "WhereTheWildThingsAre", type = "discrete", LCR = c(1,4,5,6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.