HoldridgeHypsometricCol | R Documentation |
Used to colour HoldridgeHexagons()
, and may also be used to aid the
interpretation of PET + precipitation data in any graphical context.
HoldridgeHypsometricCol(pet, prec, opacity = NA)
pet , prec |
Numeric vectors giving potential evapotranspiration ratio and annual precipitation (in mm). |
opacity |
Opacity level to be converted to the final two characters
of an RGBA hexadecimal colour definition, e.g. |
Character vector listing RGB or (if opacity != NA
)
RGBA values corresponding to each PET-precipitation value pair.
Martin R. Smith (martin.smith@durham.ac.uk)
Palette derived from the hypsometric colour scheme presented at Shaded Relief.
Other Holdridge plotting functions:
AddToHoldridge()
,
HoldridgePlot()
,
holdridge
,
holdridgeClasses
HoldridgePlot(hex.col = HoldridgeHypsometricCol)
VeryTransparent <- function(...) HoldridgeHypsometricCol(..., opacity = 0.3)
HoldridgePlot(hex.col = VeryTransparent)
pet <- holdridge$PET
prec <- holdridge$Precipitation
ptCol <- HoldridgeHypsometricCol(pet, prec)
HoldridgePoints(pet, prec, pch = 21, bg = ptCol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.