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 n=256 |
drought_severity n=7 |
GMT_red2green n=20 |
helix1 n=254 |
---|---|---|---|
MPL_RdYlGn n=128 |
SVG_fs2006 n=220 |
cmocean_speed n=256 |
GreenYellow n=252 |
MPL_summer n=128 |
MPL_YlGn n=128 |
---|---|---|---|
cmocean_matter n=256 |
MPL_gnuplot n=128 |
MPL_PuRd n=128 |
MPL_RdPu n=128 |
---|---|---|---|
sunshine_diff_12lev n=13 |
cmocean_dense n=256 |
GMT_cool n=10 |
MPL_cool n=128 |
---|---|---|
GreenMagenta16 n=16 |
MPL_PRGn n=128 |
---|---|
cmocean_ice n=256 |
MPL_Blues n=128 |
MPL_PuBu n=128 |
WhiteBlue n=254 |
---|---|---|---|
MPL_BuPu n=128 |
MPL_Purples n=128 |
---|---|
cmocean_algae n=256 |
cmocean_tempo n=256 |
MPL_BuGn n=128 |
MPL_Greens n=128 |
---|---|---|---|
WhiteGreen n=254 |
circular_0 n=18 |
circular_1 n=12 |
circular_2 n=24 |
cmocean_phase n=256 |
---|---|---|---|
GrayWhiteGray n=254 |
matlab_lines n=64 |
default n=30 |
helix n=254 |
hlu_default n=30 |
lithology n=213 |
---|---|---|---|
thelix n=254 |
MPL_BrBG n=128 |
NEO_div_vegetation_a n=256 |
NEO_div_vegetation_b n=256 |
NEO_div_vegetation_c n=256 |
---|---|---|---|
NEO_modis_ndvi n=256 |
NOC_ndvi n=253 |
vegetation_ClarkU n=256 |
vegetation_modis n=21 |
grads_default n=14 |
grads_rainbow n=13 |
---|---|
NCV_banded n=256 |
NCV_blu_red n=256 |
NCV_blue_red n=256 |
NCV_bright n=256 |
---|---|---|---|
NCV_gebco n=24 |
NCV_jaisnd n=256 |
NCV_jet n=256 |
NCV_manga n=256 |
NCV_rainbow2 n=256 |
NCV_roullet n=256 |
ncview_default n=254 |
SVG_bhw3_22 n=220 |
SVG_es_landscape_79 n=220 |
SVG_feb_sunrise n=220 |
SVG_foggy_sunrise n=220 |
---|---|---|---|
SVG_fs2006 n=220 |
SVG_Gallet13 n=220 |
SVG_Lindaa06 n=220 |
SVG_Lindaa07 n=220 |
CBR_coldhot n=11 |
CBR_drywet n=11 |
CBR_set3 n=12 |
CBR_wet n=11 |
---|---|---|---|