getColoursGrainSize: Gets colours for plotting grain size values

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getColoursGrainSize.R

Description

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

Usage

1
getColoursGrainSize(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, getColoursGrainType, getColoursHardness, getColoursLWC, getColoursSnowTemp

Examples

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

sarp.snowprofile documentation built on July 25, 2020, 5:06 p.m.