The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

rcolors: 270 ncl colormaps in R

AppVeyor build status Travis build status Codecov test coverage

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 Small rainbow Earth/Ocean Oceanography Aid in color blindness
MeteoSwiss Blue/Red Blue/Green Red/Orange Red/Green
Green/Yellow Red/Purple Blue/Purple Green/Purple Brown/Copper
Blue/Yellow/Red Blue Purple Green Gray
Banded Faded Circular Miscellaneous Vegetation
White-in-the-middle Starts-with-white GMT GrADS matplotlib
Ncview SVG ColorBrewer

Rainbow

amwg256
img n=254
BkBlAqGrYeOrReViWh200
img n=200
BlAqGrYeOrRe
img n=100
BlAqGrYeOrReVi200
img n=200
BlGrYeOrReVi200
img n=200
example
img n=113
GMT_seis
img n=256
GMT_wysiwygcont
img n=200
matlab_hsv
img n=64
matlab_jet
img n=64
MPL_gist_ncar
img n=128
MPL_gist_rainbow
img n=128
MPL_hsv
img n=128
MPL_jet
img n=128
MPL_rainbow
img n=128
MPL_Spectral
img n=128
NCV_bright
img n=256
NCV_jaisnd
img n=256
NCV_jet
img n=256
NCV_rainbow2
img n=256
ncview_default
img n=254
nice_gfdl
img n=225
rainbow
img n=188
rainbow+gray
img n=237
rainbow+white
img n=237
rainbow+white+gray
img n=238
tbr_240-300
img n=200
tbr_stdev_0-30
img n=200
tbr_var_0-500
img n=200
tbrAvg1
img n=100
tbrStd1
img n=101
tbrVar1
img n=101
temp1
img n=61
testcmap
img n=199
ViBlGrWhYeOrRe
img n=101
wh-bl-gr-ye-re
img n=199
WhBlGrYeRe
img n=100
WhiteBlueGreenYellowRed
img n=254
WhViBlGrYeOrRe
img n=101
WhViBlGrYeOrReWh
img n=101

Small rainbow

amwg
img n=16
BlAqGrWh2YeOrReVi22
img n=22
cosam
img n=10
cosam12
img n=12
cyclic
img n=6
GHRSST_anomaly
img n=42
GMT_wysiwyg
img n=20
grads_rainbow
img n=13
gui_default
img n=22
prcp_1
img n=17
prcp_2
img n=12
prcp_3
img n=23
radar
img n=15
radar_1
img n=24
seaice_1
img n=13
seaice_2
img n=14
so4_21
img n=21
so4_23
img n=23
wgne15
img n=15

Earth/Ocean

cmocean_deep
img n=256
cmp_haxby
img n=64
GMT_drywet
img n=60
GMT_globe
img n=256
GMT_haxby
img n=32
GMT_nighttime
img n=20
GMT_ocean
img n=80
GMT_relief
img n=256
GMT_relief_oceanonly
img n=160
GMT_topo
img n=256
MPL_BrBG
img n=128
MPL_gist_earth
img n=128
MPL_ocean
img n=128
MPL_terrain
img n=128
NCV_gebco
img n=24
OceanLakeLandSnow
img n=254
topo_15lev
img n=16

Oceanography

cmocean_algae
img n=256
cmocean_amp
img n=256
cmocean_balance
img n=256
cmocean_curl
img n=256
cmocean_deep
img n=256
cmocean_delta
img n=256
cmocean_dense
img n=256
cmocean_gray
img n=256
cmocean_haline
img n=256
cmocean_ice
img n=256
cmocean_matter
img n=256
cmocean_oxy
img n=256
cmocean_phase
img n=256
cmocean_solar
img n=256
cmocean_speed
img n=256
cmocean_tempo
img n=256
cmocean_thermal
img n=256
cmocean_turbid
img n=256

Aid in color blindness

BlueDarkOrange18
img n=18
BlueDarkRed18
img n=18
BlueGreen14
img n=14
BrownBlue12
img n=12
Cat12
img n=12
cb_9step
img n=78
cb_rainbow
img n=241
cb_rainbow_inv
img n=241
CBR_coldhot
img n=11
CBR_drywet
img n=11
CBR_wet
img n=11
cividis
img n=256
GreenMagenta16
img n=16
posneg_1
img n=19
posneg_2
img n=20
srip_reanalysis
img n=19
StepSeq25
img n=25

MeteoSwiss

hotcold_18lev
img n=19
hotcolr_19lev
img n=20
mch_default
img n=15
perc2_9lev
img n=10
percent_11lev
img n=12
precip2_15lev
img n=16
precip2_17lev
img n=18
precip3_16lev
img n=17
precip4_11lev
img n=12
precip4_diff_19lev
img n=20
precip_11lev
img n=12
precip_diff_12lev
img n=13
precip_diff_1lev
img n=2
rh_19lev
img n=20
spread_15lev
img n=16
sunshine_9lev
img n=10
sunshine_diff_12lev
img n=13
t2m_29lev
img n=30
temp_19lev
img n=20
temp_diff_18lev
img n=19
temp_diff_1lev
img n=2
topo_15lev
img n=16
wind_17lev
img n=18

Blue/Red

BlRe
img n=96
BlueDarkRed18
img n=18
BlueRed
img n=252
BlueRedGray
img n=253
BlWhRe
img n=101
CBR_coldhot
img n=11
cmocean_balance
img n=256
cmp_b2r
img n=64
GMT_polar
img n=20
GMT_split
img n=40
hotcold_18lev
img n=19
hotcolr_19lev
img n=20
hotres
img n=254
MPL_bwr
img n=128
MPL_coolwarm
img n=128
MPL_RdBu
img n=128
MPL_seismic
img n=128
NCV_blu_red
img n=256
NCV_blue_red
img n=256
posneg_1
img n=19
posneg_2
img n=20
temp_19lev
img n=20
temp_diff_18lev
img n=19
temp_diff_1lev
img n=2
WhBlReWh
img n=100

Blue/Green

BlueGreen14
img n=14
CBR_wet
img n=11
cmocean_deep
img n=256
cmocean_haline
img n=256
GMT_gebco
img n=70
GMT_ocean
img n=80
GMT_relief_oceanonly
img n=160
GSFC_landsat_udf_density
img n=11
MPL_BuGn
img n=128
MPL_GnBu
img n=128
MPL_ocean
img n=128
MPL_PuBuGn
img n=128
MPL_viridis
img n=256
MPL_winter
img n=128
MPL_YlGnBu
img n=128

Red/Orange

cmocean_matter
img n=256
GMT_hot
img n=100
hotres
img n=254
matlab_hot
img n=64
MPL_afmhot
img n=128
MPL_autumn
img n=128
MPL_gist_heat
img n=128
MPL_hot
img n=128
MPL_Oranges
img n=128
MPL_OrRd
img n=128
MPL_Reds
img n=128
MPL_YlOrBr
img n=128
MPL_YlOrRd
img n=128
sunshine_9lev
img n=10
WhiteYellowOrangeRed
img n=254

Red/Green

cmocean_curl
img n=256
drought_severity
img n=7
GMT_red2green
img n=20
helix1
img n=254
MPL_RdYlGn
img n=128
SVG_fs2006
img n=220

Green/Yellow

cmocean_speed
img n=256
GreenYellow
img n=252
MPL_summer
img n=128
MPL_YlGn
img n=128

Red/Purple

cmocean_matter
img n=256
MPL_gnuplot
img n=128
MPL_PuRd
img n=128
MPL_RdPu
img n=128
sunshine_diff_12lev
img n=13

Blue/Purple

cmocean_dense
img n=256
GMT_cool
img n=10
MPL_cool
img n=128

Green/Purple

GreenMagenta16
img n=16
MPL_PRGn
img n=128

Brown/Copper

BlueDarkOrange18
img n=18
BrownBlue12
img n=12
CBR_drywet
img n=11
cmocean_turbid
img n=256
GMT_copper
img n=50
MPL_BrBG
img n=128
MPL_copper
img n=128
MPL_pink
img n=128
MPL_s3pcpn
img n=128
OceanLakeLandSnow
img n=254
precip_diff_12lev
img n=13
precip_diff_1lev
img n=2
SVG_bhw3_22
img n=220
SVG_es_landscape_79
img n=220

Blue/Yellow/Red

amwg_blueyellowred
img n=16
BlueWhiteOrangeRed
img n=254
BlueYellowRed
img n=254
cmp_b2r
img n=64
cmp_flux
img n=22
GMT_jet
img n=256
GMT_no_green
img n=16
GMT_panoply
img n=16
MPL_RdYlBu
img n=128
ncl_default
img n=254
nrl_sirkes
img n=21
nrl_sirkes_nowhite
img n=19
UKM_hadcrut
img n=12

Blue

cmocean_ice
img n=256
MPL_Blues
img n=128
MPL_PuBu
img n=128
WhiteBlue
img n=254

Purple

MPL_BuPu
img n=128
MPL_Purples
img n=128

Green

cmocean_algae
img n=256
cmocean_tempo
img n=256
MPL_BuGn
img n=128
MPL_Greens
img n=128
WhiteGreen
img n=254

Gray

cmocean_gray
img n=256
GMT_gray
img n=10
GMT_relief_oceanonly
img n=160
GrayWhiteGray
img n=254
gscyclic
img n=6
gsdtol
img n=31
gsltod
img n=31
mch_default
img n=15
MPL_gist_gray
img n=128
MPL_gist_yarg
img n=128
MPL_Greys
img n=128
MPL_RdGy
img n=128
wxpEnIR
img n=100

Banded

3gauss
img n=254
3saw
img n=254
cb_9step
img n=78
detail
img n=254
extrema
img n=254
matlab_lines
img n=64
MPL_StepSeq
img n=128
NCV_banded
img n=256
NCV_manga
img n=256
NCV_roullet
img n=256
psgcap
img n=238
StepSeq25
img n=25
SVG_Gallet13
img n=220
SVG_Lindaa06
img n=220
SVG_Lindaa07
img n=220
uniform
img n=173

Faded

CBR_set3
img n=12
GMT_topo
img n=256
MPL_Accent
img n=128
MPL_Dark2
img n=128
MPL_Paired
img n=128
MPL_Pastel1
img n=128
MPL_Pastel2
img n=128
MPL_Set1
img n=128
MPL_Set2
img n=128
MPL_Set3
img n=128
SVG_feb_sunrise
img n=220
SVG_foggy_sunrise
img n=220

Circular

circular_0
img n=18
circular_1
img n=12
circular_2
img n=24
cmocean_phase
img n=256
GrayWhiteGray
img n=254
matlab_lines
img n=64

Miscellaneous

default
img n=30
helix
img n=254
hlu_default
img n=30
lithology
img n=213
thelix
img n=254

Vegetation

MPL_BrBG
img n=128
NEO_div_vegetation_a
img n=256
NEO_div_vegetation_b
img n=256
NEO_div_vegetation_c
img n=256
NEO_modis_ndvi
img n=256
NOC_ndvi
img n=253
vegetation_ClarkU
img n=256
vegetation_modis
img n=21

White-in-the-middle

BlAqGrWh2YeOrReVi22
img n=22
BlueDarkRed18
img n=18
BlueWhiteOrangeRed
img n=254
BlWhRe
img n=101
CBR_coldhot
img n=11
CBR_drywet
img n=11
circular_0
img n=18
cmocean_balance
img n=256
cmocean_curl
img n=256
cmp_flux
img n=22
GMT_polar
img n=20
GMT_red2green
img n=20
GrayWhiteGray
img n=254
GreenMagenta16
img n=16
hotcold_18lev
img n=19
hotcolr_19lev
img n=20
MPL_BrBG
img n=128
MPL_bwr
img n=128
MPL_PiYG
img n=128
MPL_PRGn
img n=128
MPL_PuOr
img n=128
MPL_RdBu
img n=128
MPL_RdGy
img n=128
MPL_seismic
img n=128
NCV_blu_red
img n=256
NCV_blue_red
img n=256
NCV_jaisnd
img n=256
NCV_manga
img n=256
NCV_roullet
img n=256
NEO_div_vegetation_b
img n=256
NEO_div_vegetation_c
img n=256
nrl_sirkes
img n=21
precip4_diff_19lev
img n=20
precip_diff_12lev
img n=13
sunshine_diff_12lev
img n=13
temp_19lev
img n=20
temp_diff_18lev
img n=19
testcmap
img n=199
ViBlGrWhYeOrRe
img n=101

Starts-with-white

CBR_wet
img n=11
mch_default
img n=15
posneg_1
img n=19
posneg_2
img n=20
prcp_1
img n=17
prcp_3
img n=23
precip2_15lev
img n=16
precip2_17lev
img n=18
precip3_16lev
img n=17
precip_11lev
img n=12
spread_15lev
img n=16
sunshine_9lev
img n=10
wh-bl-gr-ye-re
img n=199
WhBlGrYeRe
img n=100
WhBlReWh
img n=100
WhiteBlue
img n=254
WhiteBlueGreenYellowRed
img n=254
WhiteGreen
img n=254
WhiteYellowOrangeRed
img n=254
WhViBlGrYeOrRe
img n=101
WhViBlGrYeOrReWh
img n=101
wind_17lev
img n=18

GMT

GMT_cool
img n=10
GMT_copper
img n=50
GMT_drywet
img n=60
GMT_gebco
img n=70
GMT_globe
img n=256
GMT_gray
img n=10
GMT_haxby
img n=32
GMT_hot
img n=100
GMT_jet
img n=256
GMT_nighttime
img n=20
GMT_no_green
img n=16
GMT_ocean
img n=80
GMT_paired
img n=12
GMT_panoply
img n=16
GMT_polar
img n=20
GMT_red2green
img n=20
GMT_relief
img n=256
GMT_relief_oceanonly
img n=160
GMT_seis
img n=256
GMT_split
img n=40
GMT_topo
img n=256
GMT_wysiwyg
img n=20
GMT_wysiwygcont
img n=200

[GrADS]

grads_default
img n=14
grads_rainbow
img n=13

matplotlib

MPL_Accent
img n=128
MPL_afmhot
img n=128
MPL_autumn
img n=128
MPL_Blues
img n=128
MPL_bone
img n=128
MPL_BrBG
img n=128
MPL_brg
img n=128
MPL_BuGn
img n=128
MPL_BuPu
img n=128
MPL_bwr
img n=128
MPL_cool
img n=128
MPL_coolwarm
img n=128
MPL_copper
img n=128
MPL_cubehelix
img n=128
MPL_Dark2
img n=128
MPL_flag
img n=128
MPL_gist_earth
img n=128
MPL_gist_gray
img n=128
MPL_gist_heat
img n=128
MPL_gist_ncar
img n=128
MPL_gist_rainbow
img n=128
MPL_gist_stern
img n=128
MPL_gist_yarg
img n=128
MPL_GnBu
img n=128
MPL_gnuplot
img n=128
MPL_gnuplot2
img n=128
MPL_Greens
img n=128
MPL_Greys
img n=128
MPL_hot
img n=128
MPL_hsv
img n=128
MPL_jet
img n=128
MPL_ocean
img n=128
MPL_Oranges
img n=128
MPL_OrRd
img n=128
MPL_Paired
img n=128
MPL_Pastel1
img n=128
MPL_Pastel2
img n=128
MPL_pink
img n=128
MPL_PiYG
img n=128
MPL_PRGn
img n=128
MPL_prism
img n=128
MPL_PuBu
img n=128
MPL_PuBuGn
img n=128
MPL_PuOr
img n=128
MPL_PuRd
img n=128
MPL_Purples
img n=128
MPL_rainbow
img n=128
MPL_RdBu
img n=128
MPL_RdGy
img n=128
MPL_RdPu
img n=128
MPL_RdYlBu
img n=128
MPL_RdYlGn
img n=128
MPL_Reds
img n=128
MPL_s3pcpn
img n=128
MPL_s3pcpn_l
img n=128
MPL_seismic
img n=128
MPL_Set1
img n=128
MPL_Set2
img n=128
MPL_Set3
img n=128
MPL_Spectral
img n=128
MPL_spring
img n=128
MPL_sstanom
img n=128
MPL_StepSeq
img n=128
MPL_summer
img n=128
MPL_terrain
img n=128
MPL_viridis
img n=256
MPL_winter
img n=128
MPL_YlGn
img n=128
MPL_YlGnBu
img n=128
MPL_YlOrBr
img n=128
MPL_YlOrRd
img n=128

Ncview

NCV_banded
img n=256
NCV_blu_red
img n=256
NCV_blue_red
img n=256
NCV_bright
img n=256
NCV_gebco
img n=24
NCV_jaisnd
img n=256
NCV_jet
img n=256
NCV_manga
img n=256
NCV_rainbow2
img n=256
NCV_roullet
img n=256
ncview_default
img n=254

SVG

SVG_bhw3_22
img n=220
SVG_es_landscape_79
img n=220
SVG_feb_sunrise
img n=220
SVG_foggy_sunrise
img n=220
SVG_fs2006
img n=220
SVG_Gallet13
img n=220
SVG_Lindaa06
img n=220
SVG_Lindaa07
img n=220

ColorBrewer

CBR_coldhot
img n=11
CBR_drywet
img n=11
CBR_set3
img n=12
CBR_wet
img n=11

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.