powered by
Gets colours for plotting snow density values in snowprofiles. Colours are consistent with niViz at https://niviz.org
getColoursDensity(Values, Resolution = 101, Verbose = FALSE)
Array with HTML colour codes
Density values (kg/m3)
Resolution of colour scale. Default is 100.
Switch for writing out value and html colour tuplets for debugging.
phaegeli
getColoursGrainSize, getColoursGrainType, getColoursHardness, getColoursLWC, getColoursSnowTemp
Density <- seq(0,700, by=10) plot(x = rep(1,length(Density)), y = Density, col = getColoursDensity(Density), pch = 19, cex = 3)
Run the code above in your browser using DataLab