View source: R/setColoursGrainType.R
setColoursGrainType | R Documentation |
Currently, you can choose between 'iacs', 'iacs2', 'sarp', or 'sarp-reduced'.
setColoursGrainType(ScaleName)
ScaleName |
Name of graintype colour scale
|
data.frame containing the new colour values stored in grainDict
Horton, S., Nowak, S., and Haegeli, P.: Enhancing the operational value of snowpack models with visualization design principles, Nat. Hazards Earth Syst. Sci., 20, 1557–1572, doi: 10.5194/nhess-20-1557-2020, 2020.
grainDict, getColoursGrainType
## Current/default grain type colours grainDict plot(SPpairs$A_manual, main = 'Snow profile with default colours') ## Change to IACS colours grainDict <- setColoursGrainType('IACS') grainDict plot(SPpairs$A_manual, main = 'Snow profile with IACS colours') ## Change to IACS colours with adjusted MFcr (darkred) grainDict <- setColoursGrainType('IACS2') grainDict plot(SPpairs$A_manual, main = 'Snow profile with IACS colours and adjusted darkred MFcr') ## Change to SARP colours grainDict <- setColoursGrainType('SARP') grainDict plot(SPpairs$A_manual, main = 'Snow profile with SARP colours') ## Change to reduced SARP colours grainDict <- setColoursGrainType('SARP-reduced') grainDict plot(SPpairs$A_manual, main = 'Snow profile with a reduced set of SARP colours')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.