budyko_sim | R Documentation |
Simulate Budyko Curve
budyko_sim(
p = 2,
fit = NULL,
method = "budyko",
res = 0.01,
hshift = FALSE,
hs = NULL,
silent = FALSE
)
p |
numeric parameter value for custom Budyko curve |
fit |
list dataframe object with names() method and entries "param" for parameter p, "err" for vertical fit error, and "hshift" for optional hshift value (default to zero) |
method |
A string. One of the following: Fu, Turc-Pike, Wang-Tank |
res |
numeric resolution of fit, defaults to 0.01 units |
hshift |
A boolean. T/F (default F), whether to test for horizontal shift |
hs |
numeric optional horizontal shift value |
silent |
A boolean. (default F) display error message? |
Given a Budyko Curve type and fit parameter, simulates a smooth curve in Budyko-space
library(ggplot2)
fit=as.data.frame(c("param"=2,"err"=0.5,"hshift"=0))
blankBC+
geom_line(data=budyko_sim(fit=fit,method="Fu"))+
coord_cartesian(xlim=c(0,5))+
theme_bw()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.