getColoursDensity: Gets colours for plotting snow density values

View source: R/getColoursDensity.R

getColoursDensityR Documentation

Gets colours for plotting snow density values

Description

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

Usage

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

Arguments

Values

Density values (kg/m3)

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

getColoursGrainSize, getColoursGrainType, getColoursHardness, getColoursLWC, getColoursSnowTemp

Examples


Density <- seq(0,700, by=10)
plot(x = rep(1,length(Density)), y = Density, col = getColoursDensity(Density), pch = 19, cex = 3)


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