Description
270 'NCL' Color Tables in R Language.
Description
'NCL' (NCAR Command Language) is one of the most popular spatial data mapping tools in meteorology studies, due to its beautiful output figures with plenty of color palettes designed by experts <https://www.ncl.ucar.edu/index.shtml>. Here we translate all 'NCL' color palettes into R hexadecimal RGB colors and provide color selection function, which will help users make a beautiful figure.
README.md
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
Small rainbow
Earth/Ocean
Oceanography
Aid in color blindness
MeteoSwiss
Blue/Red
Blue/Green
Red/Orange
Red/Green
| cmocean_curl n=256 | drought_severity n=7 | GMT_red2green n=20 | helix1 n=254 |
|---|---|---|---|
| MPL_RdYlGn n=128 | SVG_fs2006 n=220 |
Green/Yellow
| cmocean_speed n=256 | GreenYellow n=252 | MPL_summer n=128 | MPL_YlGn n=128 |
|---|---|---|---|
Red/Purple
| cmocean_matter n=256 | MPL_gnuplot n=128 | MPL_PuRd n=128 | MPL_RdPu n=128 |
|---|---|---|---|
| sunshine_diff_12lev n=13 |
Blue/Purple
| cmocean_dense n=256 | GMT_cool n=10 | MPL_cool n=128 |
|---|---|---|
Green/Purple
| GreenMagenta16 n=16 | MPL_PRGn n=128 |
|---|---|
Brown/Copper
Blue/Yellow/Red
Blue
| cmocean_ice n=256 | MPL_Blues n=128 | MPL_PuBu n=128 | WhiteBlue n=254 |
|---|---|---|---|
Purple
| MPL_BuPu n=128 | MPL_Purples n=128 |
|---|---|
Green
| cmocean_algae n=256 | cmocean_tempo n=256 | MPL_BuGn n=128 | MPL_Greens n=128 |
|---|---|---|---|
| WhiteGreen n=254 |
Gray
Banded
Faded
| 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
| circular_0 n=18 | circular_1 n=12 | circular_2 n=24 | cmocean_phase n=256 |
|---|---|---|---|
| GrayWhiteGray n=254 | matlab_lines n=64 |
Miscellaneous
| default n=30 | helix n=254 | hlu_default n=30 | lithology n=213 |
|---|---|---|---|
| thelix n=254 |
Vegetation
| 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 |
White-in-the-middle
Starts-with-white
GMT
[GrADS]
| grads_default n=14 | grads_rainbow n=13 |
|---|---|
matplotlib
Ncview
| 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
| 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 |
ColorBrewer
| CBR_coldhot n=11 | CBR_drywet n=11 | CBR_set3 n=12 | CBR_wet n=11 |
|---|---|---|---|