rcolors: 270 ncl colormaps in
R
Installation
devtools::install_github("kongdd/rcolors")
Example
This is a basic example which shows you how to use
rcolors
:
library(rcolors)
rcolors$amwg_blueyellowred %>% show_cols()
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(rcolors2))
#> [1] "rainbow" "small rainbow" "earth_ocean"
#> [4] "oceanography" "aid in color blindness" "meteoswiss"
#> [7] "blue_red" "blue_green" "red_orange"
#> [10] "red_green" "green_yellow" "red_purple"
#> [13] "blue_purple" "green_purple" "brown_copper"
#> [16] "blue_yellow_red" "blue" "purple"
#> [19] "green" "gray" "banded"
#> [22] "faded" "circular" "miscellaneous"
#> [25] "vegetation" "white-in-the-middle" "starts-with-white"
#> [28] "gmt" "grads" "matplotlib"
#> [31] "ncview" "svg" "colorbrewer"
show_cols(rcolors2$rainbow, margin = 14)
Color Table Gallery
about
color tables | named
colors
Rainbow
BlGrYeOrReVi200 n=200 |
example n=113 |
GMT_seis n=256 |
GMT_wysiwygcont n=200 |
matlab_hsv n=64 |
matlab_jet n=64 |
MPL_gist_ncar n=128 |
MPL_gist_rainbow
n=128 |
MPL_hsv n=128 |
MPL_jet n=128 |
MPL_rainbow n=128 |
MPL_Spectral n=128 |
NCV_bright n=256 |
NCV_jaisnd n=256 |
NCV_jet n=256 |
NCV_rainbow2 n=256 |
ncview_default n=254 |
nice_gfdl n=225 |
rainbow n=188 |
rainbow+gray n=237 |
rainbow+white n=237 |
rainbow+white+gray
n=238 |
tbr_240-300 n=200 |
tbr_stdev_0-30 n=200 |
tbr_var_0-500 n=200 |
tbrAvg1 n=100 |
tbrStd1 n=101 |
tbrVar1 n=101 |
temp1 n=61 |
testcmap n=199 |
ViBlGrWhYeOrRe n=101 |
wh-bl-gr-ye-re n=199 |
WhBlGrYeRe n=100 |
WhiteBlueGreenYellowRed
n=254 |
WhViBlGrYeOrRe n=101 |
WhViBlGrYeOrReWh
n=101 |
Small rainbow
cyclic n=6 |
GHRSST_anomaly n=42 |
GMT_wysiwyg n=20 |
grads_rainbow n=13 |
gui_default n=22 |
prcp_1 n=17 |
prcp_2 n=12 |
prcp_3 n=23 |
radar n=15 |
radar_1 n=24 |
seaice_1 n=13 |
seaice_2 n=14 |
so4_21 n=21 |
so4_23 n=23 |
wgne15 n=15 |
|
Earth/Ocean
GMT_haxby n=32 |
GMT_nighttime n=20 |
GMT_ocean n=80 |
GMT_relief n=256 |
GMT_relief_oceanonly
n=160 |
GMT_topo n=256 |
MPL_BrBG n=128 |
MPL_gist_earth n=128 |
MPL_ocean n=128 |
MPL_terrain n=128 |
NCV_gebco n=24 |
OceanLakeLandSnow
n=254 |
topo_15lev n=16 |
|
|
|
Oceanography
cmocean_deep n=256 |
cmocean_delta n=256 |
cmocean_dense n=256 |
cmocean_gray n=256 |
cmocean_haline n=256 |
cmocean_ice n=256 |
cmocean_matter n=256 |
cmocean_oxy n=256 |
cmocean_phase n=256 |
cmocean_solar n=256 |
cmocean_speed n=256 |
cmocean_tempo n=256 |
cmocean_thermal n=256 |
cmocean_turbid n=256 |
|
|
Aid in color blindness
Cat12 n=12 |
cb_9step n=78 |
cb_rainbow n=241 |
cb_rainbow_inv n=241 |
CBR_coldhot n=11 |
CBR_drywet n=11 |
CBR_wet n=11 |
cividis n=256 |
GreenMagenta16 n=16 |
posneg_1 n=19 |
posneg_2 n=20 |
srip_reanalysis n=19 |
StepSeq25 n=25 |
|
|
|
percent_11lev n=12 |
precip2_15lev n=16 |
precip2_17lev n=18 |
precip3_16lev n=17 |
precip4_11lev n=12 |
precip4_diff_19lev
n=20 |
precip_11lev n=12 |
precip_diff_12lev
n=13 |
precip_diff_1lev n=2 |
rh_19lev n=20 |
spread_15lev n=16 |
sunshine_9lev n=10 |
sunshine_diff_12lev
n=13 |
t2m_29lev n=30 |
temp_19lev n=20 |
temp_diff_18lev n=19 |
temp_diff_1lev n=2 |
topo_15lev n=16 |
wind_17lev n=18 |
|
Blue/Red
BlWhRe n=101 |
CBR_coldhot n=11 |
cmocean_balance n=256 |
cmp_b2r n=64 |
GMT_polar n=20 |
GMT_split n=40 |
hotcold_18lev n=19 |
hotcolr_19lev n=20 |
hotres n=254 |
MPL_bwr n=128 |
MPL_coolwarm n=128 |
MPL_RdBu n=128 |
MPL_seismic n=128 |
NCV_blu_red n=256 |
NCV_blue_red n=256 |
posneg_1 n=19 |
posneg_2 n=20 |
temp_19lev n=20 |
temp_diff_18lev n=19 |
temp_diff_1lev n=2 |
WhBlReWh n=100 |
|
|
|
Blue/Green
GMT_gebco n=70 |
GMT_ocean n=80 |
GMT_relief_oceanonly
n=160 |
GSFC_landsat_udf_density
n=11 |
MPL_BuGn n=128 |
MPL_GnBu n=128 |
MPL_ocean n=128 |
MPL_PuBuGn n=128 |
MPL_viridis n=256 |
MPL_winter n=128 |
MPL_YlGnBu n=128 |
|
Red/Orange
MPL_afmhot n=128 |
MPL_autumn n=128 |
MPL_gist_heat n=128 |
MPL_hot n=128 |
MPL_Oranges n=128 |
MPL_OrRd n=128 |
MPL_Reds n=128 |
MPL_YlOrBr n=128 |
MPL_YlOrRd n=128 |
sunshine_9lev n=10 |
WhiteYellowOrangeRed
n=254 |
|
Red/Green
MPL_RdYlGn n=128 |
SVG_fs2006 n=220 |
|
|
Green/Yellow
Red/Purple
sunshine_diff_12lev
n=13 |
|
|
|
Blue/Purple
Green/Purple
Brown/Copper
GMT_copper n=50 |
MPL_BrBG n=128 |
MPL_copper n=128 |
MPL_pink n=128 |
MPL_s3pcpn n=128 |
OceanLakeLandSnow
n=254 |
precip_diff_12lev
n=13 |
precip_diff_1lev n=2 |
SVG_bhw3_22 n=220 |
SVG_es_landscape_79
n=220 |
|
|
Blue/Yellow/Red
cmp_flux n=22 |
GMT_jet n=256 |
GMT_no_green n=16 |
GMT_panoply n=16 |
MPL_RdYlBu n=128 |
ncl_default n=254 |
nrl_sirkes n=21 |
nrl_sirkes_nowhite
n=19 |
UKM_hadcrut n=12 |
|
|
|
Blue
Purple
Green
WhiteGreen n=254 |
|
|
|
Gray
gscyclic n=6 |
gsdtol n=31 |
gsltod n=31 |
mch_default n=15 |
MPL_gist_gray n=128 |
MPL_gist_yarg n=128 |
MPL_Greys n=128 |
MPL_RdGy n=128 |
wxpEnIR n=100 |
|
|
|
Banded
extrema n=254 |
matlab_lines n=64 |
MPL_StepSeq n=128 |
NCV_banded n=256 |
NCV_manga n=256 |
NCV_roullet n=256 |
psgcap n=238 |
StepSeq25 n=25 |
SVG_Gallet13 n=220 |
SVG_Lindaa06 n=220 |
SVG_Lindaa07 n=220 |
uniform n=173 |
Faded
MPL_Paired n=128 |
MPL_Pastel1 n=128 |
MPL_Pastel2 n=128 |
MPL_Set1 n=128 |
MPL_Set2 n=128 |
MPL_Set3 n=128 |
SVG_feb_sunrise n=220 |
SVG_foggy_sunrise
n=220 |
Circular
GrayWhiteGray n=254 |
matlab_lines n=64 |
|
|
Miscellaneous
thelix n=254 |
|
|
|
Vegetation
NEO_modis_ndvi n=256 |
NOC_ndvi n=253 |
vegetation_ClarkU
n=256 |
vegetation_modis n=21 |
White-in-the-middle
CBR_coldhot n=11 |
CBR_drywet n=11 |
circular_0 n=18 |
cmocean_balance n=256 |
cmocean_curl n=256 |
cmp_flux n=22 |
GMT_polar n=20 |
GMT_red2green n=20 |
GrayWhiteGray n=254 |
GreenMagenta16 n=16 |
hotcold_18lev n=19 |
hotcolr_19lev n=20 |
MPL_BrBG n=128 |
MPL_bwr n=128 |
MPL_PiYG n=128 |
MPL_PRGn n=128 |
MPL_PuOr n=128 |
MPL_RdBu n=128 |
MPL_RdGy n=128 |
MPL_seismic n=128 |
NCV_blu_red n=256 |
NCV_blue_red n=256 |
NCV_jaisnd n=256 |
NCV_manga n=256 |
NCV_roullet n=256 |
NEO_div_vegetation_b
n=256 |
NEO_div_vegetation_c
n=256 |
nrl_sirkes n=21 |
precip4_diff_19lev
n=20 |
precip_diff_12lev
n=13 |
sunshine_diff_12lev
n=13 |
temp_19lev n=20 |
temp_diff_18lev n=19 |
testcmap n=199 |
ViBlGrWhYeOrRe n=101 |
|
Starts-with-white
prcp_1 n=17 |
prcp_3 n=23 |
precip2_15lev n=16 |
precip2_17lev n=18 |
precip3_16lev n=17 |
precip_11lev n=12 |
spread_15lev n=16 |
sunshine_9lev n=10 |
wh-bl-gr-ye-re n=199 |
WhBlGrYeRe n=100 |
WhBlReWh n=100 |
WhiteBlue n=254 |
WhiteBlueGreenYellowRed
n=254 |
WhiteGreen n=254 |
WhiteYellowOrangeRed
n=254 |
WhViBlGrYeOrRe n=101 |
WhViBlGrYeOrReWh
n=101 |
wind_17lev n=18 |
|
|
GMT_globe n=256 |
GMT_gray n=10 |
GMT_haxby n=32 |
GMT_hot n=100 |
GMT_jet n=256 |
GMT_nighttime n=20 |
GMT_no_green n=16 |
GMT_ocean n=80 |
GMT_paired n=12 |
GMT_panoply n=16 |
GMT_polar n=20 |
GMT_red2green n=20 |
GMT_relief n=256 |
GMT_relief_oceanonly
n=160 |
GMT_seis n=256 |
GMT_split n=40 |
GMT_topo n=256 |
GMT_wysiwyg n=20 |
GMT_wysiwygcont n=200 |
|
[GrADS]
MPL_bone n=128 |
MPL_BrBG n=128 |
MPL_brg n=128 |
MPL_BuGn n=128 |
MPL_BuPu n=128 |
MPL_bwr n=128 |
MPL_cool n=128 |
MPL_coolwarm n=128 |
MPL_copper n=128 |
MPL_cubehelix n=128 |
MPL_Dark2 n=128 |
MPL_flag n=128 |
MPL_gist_earth n=128 |
MPL_gist_gray n=128 |
MPL_gist_heat n=128 |
MPL_gist_ncar n=128 |
MPL_gist_rainbow
n=128 |
MPL_gist_stern n=128 |
MPL_gist_yarg n=128 |
MPL_GnBu n=128 |
MPL_gnuplot n=128 |
MPL_gnuplot2 n=128 |
MPL_Greens n=128 |
MPL_Greys n=128 |
MPL_hot n=128 |
MPL_hsv n=128 |
MPL_jet n=128 |
MPL_ocean n=128 |
MPL_Oranges n=128 |
MPL_OrRd n=128 |
MPL_Paired n=128 |
MPL_Pastel1 n=128 |
MPL_Pastel2 n=128 |
MPL_pink n=128 |
MPL_PiYG n=128 |
MPL_PRGn n=128 |
MPL_prism n=128 |
MPL_PuBu n=128 |
MPL_PuBuGn n=128 |
MPL_PuOr n=128 |
MPL_PuRd n=128 |
MPL_Purples n=128 |
MPL_rainbow n=128 |
MPL_RdBu n=128 |
MPL_RdGy n=128 |
MPL_RdPu n=128 |
MPL_RdYlBu n=128 |
MPL_RdYlGn n=128 |
MPL_Reds n=128 |
MPL_s3pcpn n=128 |
MPL_s3pcpn_l n=128 |
MPL_seismic n=128 |
MPL_Set1 n=128 |
MPL_Set2 n=128 |
MPL_Set3 n=128 |
MPL_Spectral n=128 |
MPL_spring n=128 |
MPL_sstanom n=128 |
MPL_StepSeq n=128 |
MPL_summer n=128 |
MPL_terrain n=128 |
MPL_viridis n=256 |
MPL_winter n=128 |
MPL_YlGn n=128 |
MPL_YlGnBu n=128 |
MPL_YlOrBr n=128 |
MPL_YlOrRd n=128 |
|
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
SVG_fs2006 n=220 |
SVG_Gallet13 n=220 |
SVG_Lindaa06 n=220 |
SVG_Lindaa07 n=220 |