Description Usage Arguments Details Source See Also Examples
List all possible color palettes available on cpt-city since the last package update
1 |
... |
additional parameters to |
Uses the table in cbcity
as a 'current' list.
http://soliton.vm.bytemark.co.uk/pub/cpt-city/cb/
cpt
and read_cpt
, or just city_palette
to
download and read-in a specific palette from this list.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.