Returns a list of different color palettes. Each palette is a data.frame. trove Palette found at http://colrd.com/palette/19308/ redToGray Palette found at http://colrd.com/palette/21894/
jColors(palette = NULL, colors = NULL, preview = FALSE)
# Preview every color palette
jColors(preview = TRUE)
# Preview a single color palette
jColors(palette = "basic", preview = TRUE)
# Preview a few colors from a single color palette
jColors(palette = "basic", colors = c("red", "blue"), preview = TRUE)
# Get the colors from a whole palette as a vector
jColors(palette = "basic")
#> green blue yellow orange red gray
#> "#8FC977FF" "#80C5DCFF" "#E8BF4DFF" "#E37D39FF" "#980000FF" "grey70"
#> black
#> "black"
# Get only select colors from a palette as a vector
jColors(palette = "basic", colors = c("red", "blue"))
#> red blue
#> "#980000FF" "#80C5DCFF"