install.packages("rcolors")
This is a basic example which shows you how to use rcolors
:
library(rcolors)
cols = rcolors$amwg_blueyellowred
show_cols(cols)
(cols_1 = get_color(rcolors$amwg_blueyellowred, n = 20))
#> [1] "#8220F0" "#1B06A8" "#0000B5" "#1726D4" "#3B6FE5" "#1F8DFD" "#07B2FF"
#> [8] "#54C9FF" "#AFDDFF" "#D6F6F9" "#FAFDCD" "#FFEA61" "#FFC61A" "#FF9A00"
#> [15] "#FF6800" "#FF1100" "#DC0000" "#B70E0E" "#B33141" "#FF69B4"
(cols_2 = get_color("amwg_blueyellowred", n = 20))
#> [1] "#8220F0" "#1B06A8" "#0000B5" "#1726D4" "#3B6FE5" "#1F8DFD" "#07B2FF"
#> [8] "#54C9FF" "#AFDDFF" "#D6F6F9" "#FAFDCD" "#FFEA61" "#FFC61A" "#FF9A00"
#> [15] "#FF6800" "#FF1100" "#DC0000" "#B70E0E" "#B33141" "#FF69B4"
print(names(colors_group))
#> [1] "aid in color blindness" "banded" "blue"
#> [4] "blue_green" "blue_purple" "blue_red"
#> [7] "blue_yellow_red" "brewer" "brown_copper"
#> [10] "circular" "colorbrewer" "earth_ocean"
#> [13] "faded" "gmt" "grads"
#> [16] "gray" "green" "green_purple"
#> [19] "green_yellow" "matplotlib" "meteoswiss"
#> [22] "miscellaneous" "ncview" "oceanography"
#> [25] "purple" "rainbow" "red_green"
#> [28] "red_orange" "red_purple" "small rainbow"
#> [31] "starts-with-white" "svg" "vegetation"
#> [34] "white-in-the-middle"
show_cols(colors_group$rainbow, margin = 14)
about color tables | named colors
cmocean_curl |
drought_severity |
GMT_red2green |
helix1 |
---|---|---|---|
MPL_RdYlGn |
SVG_fs2006 |
cmocean_speed |
GreenYellow |
MPL_summer |
MPL_YlGn |
---|---|---|---|
cmocean_matter |
MPL_gnuplot |
MPL_PuRd |
MPL_RdPu |
---|---|---|---|
sunshine_diff_12lev |
cmocean_dense |
GMT_cool |
MPL_cool |
---|---|---|
GreenMagenta16 |
MPL_PRGn |
---|---|
cmocean_ice |
MPL_Blues |
MPL_PuBu |
WhiteBlue |
---|---|---|---|
MPL_BuPu |
MPL_Purples |
---|---|
cmocean_algae |
cmocean_tempo |
MPL_BuGn |
MPL_Greens |
---|---|---|---|
WhiteGreen |
circular_0 |
circular_1 |
circular_2 |
cmocean_phase |
---|---|---|---|
GrayWhiteGray |
matlab_lines |
default |
helix |
hlu_default |
lithology |
---|---|---|---|
thelix |
MPL_BrBG |
NEO_div_vegetation_a |
NEO_div_vegetation_b |
NEO_div_vegetation_c |
---|---|---|---|
NEO_modis_ndvi |
NOC_ndvi |
vegetation_ClarkU |
vegetation_modis |
grads_default |
grads_rainbow |
---|---|
NCV_banded |
NCV_blu_red |
NCV_blue_red |
NCV_bright |
---|---|---|---|
NCV_gebco |
NCV_jaisnd |
NCV_jet |
NCV_manga |
NCV_rainbow2 |
NCV_roullet |
ncview_default |
SVG_bhw3_22 |
SVG_es_landscape_79 |
SVG_feb_sunrise |
SVG_foggy_sunrise |
---|---|---|---|
SVG_fs2006 |
SVG_Gallet13 |
SVG_Lindaa06 |
SVG_Lindaa07 |
CBR_coldhot |
CBR_drywet |
CBR_set3 |
CBR_wet |
---|---|---|---|