A function to save 4 core Impact response surfaces for paper, given a specific functional form for a specific ensemble and the corresponding coefficients for mu and sigma.
1 2 3 4 | plot_map_emulated_yields(crop, coefpath = "data/emulatorcoefficients",
ctwpath = "data/climatedata/hadgem2es", mapsavepath = "figures/maps",
plotyear = 2085, plotirr = "RFD", func, sdfunc, high = FALSE,
low = FALSE)
|
crop |
The crop to calculate changes for, including looking up coefficients |
coefpath |
The location of the coefficients, defaults to "data/emulatorcoefficients" |
ctwpath |
The location of the driving CTW data, defaults to "data/climatedata/hadgem2es" |
mapsavepath |
The location to save the output maps, defaults to "figures/maps" |
plotyear |
The year to plot, defaults to 2085 |
plotirr |
The type of crop to plot, RFD or IRR. Defaults to RFD |
func |
The name of the functional form for mu, for looking up coefficients |
sdfunc |
The name of the functional form for sigma, for looking up coefficients |
high |
If you want to return the high response case instead of the mean, defaults to FALSE |
low |
If you want to return the low response case instead of the mean, defaults to FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.