col2cpt: Make a GMT color ramp file (.cpt)

Description Usage Arguments Details Value Author(s) References Examples

View source: R/col2cpt.R

Description

Make a GMT color ramp file (.cpt)

Usage

1
2
3
4
5
6
7
col2cpt(
  nmin = 0,
  nmax = 1,
  clist = c("lightcyan", "royalblue", "blue", "lemonchiffon", "orange", "red"),
  outfile = "mycol.cpt",
  length = 100
)

Arguments

nmin

numeric minimum of the ramp

nmax

numeric maximum of the ramp

clist

catenated color list

outfile

outpur filename (.cpt)

length

number of segments between min and max

Details

I love GMT. No other reason for this to be in here.

Value

a .cpt file

Author(s)

Benjamin Galuardi

References

Wessel, P., Smith, W.H.F., Scharroo, R., Luis, J., and Wobbe, F. 2013. Generic Mapping Tools: Improved Version Released. Eos, Transactions American Geophysical Union 94(45): 409–410. doi:10.1002/2013EO450001. http://gmt.soest.hawaii.edu/doc/latest/index.html

Examples

1
col2cpt(nmin = 0, nmax = 40, clist = c("lightcyan", "royalblue", "blue", "lemonchiffon", "orange", "red"),  outfile = 'my_colors.cpt', length=100)

galuardi/SatTagSim documentation built on Nov. 15, 2020, 6:28 a.m.