getColoursSnowTemp: Gets colours for plotting snow temperature values

View source: R/getColoursSnowTemp.R

getColoursSnowTempR Documentation

Gets colours for plotting snow temperature values

Description

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

Usage

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

Arguments

Values

Snow temperature 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, getColoursLWC

Examples


SnowTemp <- c(-25:0)
plot(x = rep(1,length(SnowTemp)), y = SnowTemp,
     col = getColoursSnowTemp(SnowTemp), pch = 19,cex = 3)


sarp.snowprofile documentation built on March 31, 2023, 5:17 p.m.