getColoursLWC: Gets colours for plotting LWC values

View source: R/getColoursLWC.R

getColoursLWCR Documentation

Gets colours for plotting LWC values

Description

Gets colours for plotting LWC values in snowprofiles. Colours are consistent with niViz at https://niviz.org

Usage

getColoursLWC(Values, Resolution = 101, Verbose = FALSE)

Arguments

Values

Liquid water content values

Resolution

Resolution of colour scale. Default is 100.

Verbose

Switch for writing out value and html colour tuplets for debugging.

Value

Array with HTML colour codes

Author(s)

phaegeli

See Also

getColoursDensity, getColoursGrainSize, getColoursGrainType, getColoursHardness, getColoursSnowTemp

Examples


LWC <- seq(0,6, by = 0.1)
plot(x = rep(1,length(LWC)), y = LWC, col = getColoursLWC(LWC), pch = 19, cex = 3)


sarp.snowprofile documentation built on Aug. 6, 2022, 1:05 a.m.