Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

color.bar

Graphic Representation of a Color bar, function written by John Colby


Description

Graphic Representation of a Color bar, function written by John Colby

Usage

color.bar(lut, min, max = -min, nticks = 11, ticks = seq(min, max,
  len = nticks), title = "", width = 1.75, height = 5,
  ncolmax = 100, digits = 4, pdf = NULL)

Arguments

lut

see reference http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette

min

see reference http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette

max

see reference http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette

nticks

see reference http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette

ticks

see reference http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette

title

see reference http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette

width, height

width and height of the device

ncolmax

maximum number of colors. Default is 100.

digits

specified number of significant digits

pdf

character value for pdf output file. Default is NULL and no pdf file is created.

Note

This function is taken from http://stackoverflow.com/questions/9314658/colorbar-from-custom-colorramppalette. Plese visit the URL for major details and give your feedback if possible.

Author(s)

References

Examples

color.bar(colorRampPalette(c("light green", "yellow", "orange", "red"))(100), -1)

geotopbricks

An R Plug-in for the Distributed Hydrological Model GEOtop

v1.5.4
GPL (>= 2)
Authors
Emanuele Cordano, Daniele Andreis, Fabio Zottele
Initial release
2020-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.