blankBC | R Documentation |
Blank Budyko Curve Graph
blankBC
An object of class gg
(inherits from ggplot
) of length 11.
Generates a blank Budyko Curve with energy and water limit lines
library(ggplot2)
blankBC+coord_cartesian(xlim=c(0,2))+geom_vline(xintercept=1,lty=2)+
geom_text(data=data.frame(
labels=c("Energy Limited","Water Limited"),
x=c(0.7,1.3),y=c(0.25,0.25)
),aes(x=x,y=y,label=labels))
fit=as.data.frame(c("param"=2,"err"=0.5,"hshift"=0))
blankBC+
geom_line(data=budyko_sim(fit=fit,method="Fu"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.