read_cpt: Download and read-in a cpt-city color palette

Description Usage Arguments Details Value Source See Also Examples

Description

Download and read-in a cpt-city color palette

Usage

1
2
3
4
read_cpt(x, ...)

## S3 method for class 'cpt'
read_cpt(x, ...)

Arguments

x

an object to read in

...

additional parameters to read.table

Details

Uses read.table to download and read in the color palette.

Value

A cpt.cols-class object

Source

http://soliton.vm.bytemark.co.uk/pub/cpt-city/notes/formats.html

See Also

cpt, and city_palette, a convenience function used to download the palette in one step

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

c.5 <- read_cpt(cpt('OrRd',5))
c.7 <- read_cpt(cpt('OrRd',7))

layout(matrix(1:3))
plot(c.5)
plot(c.7)
# specify the axes
plot(c.7, ax=axis(1, at=1:7, labels=letters[1:7]))

## End(Not run)

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