setlfunit | R Documentation |
Sets the option for the unit in plots.
setlfunit(string = "")
string |
String of the unit |
The unit string should be readable for the R-function
expression
, for common units see example below.
No return value, called for side effects. For the current R session a unit for discharges is set.
No calculation on data is done by setting this string.
Daniel Koffler and Gregor Laaha
Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WNO-No. 1029, 136p.
data(ngaruroro) # Default: no unit bfplot(ngaruroro, year = 1991) # The plot does not change, just the y-label does! setlfunit("m^3/s") bfplot(ngaruroro,year = 1991) # Some possible labels: setlfunit("m^3/s") setlfunit("m^{3}*s^{-1}") setlfunit("scriptscriptstyle(frac(m^3,s))") setlfunit("l/s") setlfunit("l*s^{-1}") setlfunit("scriptscriptstyle(frac(l,s))") setlfunit("m^3/s/km^2") setlfunit("m^3*s^{-1}*km^{-2}") setlfunit("scriptscriptstyle(frac(m^3,s%.%km^2))") setlfunit("l/s/km^2") setlfunit("l*s^{-1}*km^{-2}") setlfunit("scriptscriptstyle(frac(l,s%.%km^2))")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.