rcolors: 270 ncl colormaps in R
![monthly](https://camo.githubusercontent.com/fb01b4625ee66c497dc5017a03e1aa3884409090c5976d5255249973b8eb89a0/687474703a2f2f6372616e6c6f67732e722d706b672e6f72672f6261646765732f72636f6c6f7273)
install.packages("rcolors")
This is a basic example which shows you how to use rcolors
:
library(rcolors)
cols = rcolors$amwg_blueyellowred
show_cols(cols)
![](https://raw.githubusercontent.com/liupeng23/rcolors/master/man/figures/README-get_color-1.svg)
(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)
![](https://raw.githubusercontent.com/liupeng23/rcolors/master/man/figures/README-show_cols-1.svg)
about color
tables
| named
colors
amwg256
n=254 |
BkBlAqGrYeOrReViWh200
n=200 |
BlAqGrYeOrRe
n=100 |
BlAqGrYeOrReVi200
n=200 |
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 |
amwg
n=16 |
BlAqGrWh2YeOrReVi22
n=22 |
cosam
n=10 |
cosam12
n=12 |
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 |
|
cmocean_deep
n=256 |
cmp_haxby
n=64 |
GMT_drywet
n=60 |
GMT_globe
n=256 |
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 |
|
|
|
cmocean_algae
n=256 |
cmocean_amp
n=256 |
cmocean_balance
n=256 |
cmocean_curl
n=256 |
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 |
|
|
BlueDarkOrange18
n=18 |
BlueDarkRed18
n=18 |
BlueGreen14
n=14 |
BrownBlue12
n=12 |
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 |
|
|
|
hotcold_18lev
n=19 |
hotcolr_19lev
n=20 |
mch_default
n=15 |
perc2_9lev
n=10 |
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 |
|
BlRe
n=96 |
BlueDarkRed18
n=18 |
BlueRed
n=252 |
BlueRedGray
n=253 |
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 |
|
|
|
BlueGreen14
n=14 |
CBR_wet
n=11 |
cmocean_deep
n=256 |
cmocean_haline
n=256 |
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 |
|
cmocean_matter
n=256 |
GMT_hot
n=100 |
hotres
n=254 |
matlab_hot
n=64 |
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 |
|
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 |
|
|
BlueDarkOrange18
n=18 |
BrownBlue12
n=12 |
CBR_drywet
n=11 |
cmocean_turbid
n=256 |
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 |
|
|
amwg_blueyellowred
n=16 |
BlueWhiteOrangeRed
n=254 |
BlueYellowRed
n=254 |
cmp_b2r
n=64 |
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 |
|
|
|
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 |
|
|
|
cmocean_gray
n=256 |
GMT_gray
n=10 |
GMT_relief_oceanonly
n=160 |
GrayWhiteGray
n=254 |
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 |
|
|
|
3gauss
n=254 |
3saw
n=254 |
cb_9step
n=78 |
detail
n=254 |
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 |
CBR_set3
n=12 |
GMT_topo
n=256 |
MPL_Accent
n=128 |
MPL_Dark2
n=128 |
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_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 |
BlAqGrWh2YeOrReVi22
n=22 |
BlueDarkRed18
n=18 |
BlueWhiteOrangeRed
n=254 |
BlWhRe
n=101 |
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 |
|
CBR_wet
n=11 |
mch_default
n=15 |
posneg_1
n=19 |
posneg_2
n=20 |
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_cool
n=10 |
GMT_copper
n=50 |
GMT_drywet
n=60 |
GMT_gebco
n=70 |
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_default
n=14 |
grads_rainbow
n=13 |
|
|
MPL_Accent
n=128 |
MPL_afmhot
n=128 |
MPL_autumn
n=128 |
MPL_Blues
n=128 |
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_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 |
|
|
|
|