list_cpt: List all possible color palettes

Description Usage Arguments Details Source See Also Examples

Description

List all possible color palettes available on cpt-city since the last package update

Usage

1

Arguments

...

additional parameters to subset; see cbcity

Details

Uses the table in cbcity as a 'current' list.

Source

http://soliton.vm.bytemark.co.uk/pub/cpt-city/cb/

See Also

cpt and read_cpt, or just city_palette to download and read-in a specific palette from this list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Show the full list
list_cpt()

##  Subsets of the listing
names(cbcity)
# [1] "pal.type" "pal.name" "pal.n"

#   any palette of length 8
list_cpt(pal.n==8)
#   any palette with the name 'Set1'
list_cpt(pal.name=="Set1")

## Tabulate the palette names for convenience
getOption('cb.city.ops')[['cb.url.exts']]
# or just
unique(cbcity$pal.type)
# [1] "seq"  "div"  "qual"

# Diverging:
with(list_cpt(pal.type=='div'), table(pal.name))

# Sequential:
with(list_cpt(pal.type=='seq'), table(pal.name))

# Qualitative:
with(list_cpt(pal.type=='qual'), table(pal.name))

abarbour/cb.city documentation built on May 10, 2019, 4:06 a.m.