WB_brewer | R Documentation |
Function used to create continuous/discrete palettes using the palettes in WrensBookshelf.
WB_brewer( name, n, type = c("discrete", "continuous"), direction = c(1, -1), override.order = FALSE )
name |
Name of palette from WrensBookshelf |
n |
Number of colors to select, or size of continuous palette if n > length(palette) |
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. |
override.order |
Argument used to override the prescribed order that colors are selected from palettes for discrete palettes where n < length(palette). Default = FALSE. |
A color palette.
WB_brewer(name = "BabyWrenAndTheGreatGift", type = "continuous", n = 200) WB_brewer(name = "JulienIsAMermaid", type = "discrete", direction = -1, n = 7, override.order = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.