plotUncertainty_getsd | R Documentation |
*Depreciation note* : This function is no longer used, because (1) the new version of the package 'gdm' allows extracting output data from this function, and (2) because we need the uncertainty not only at the maximum value, but throughout the 200 x values.
plotUncertainty_getsd(
spTable,
sampleSites,
bsIters,
geo = FALSE,
splines = NULL,
knots = NULL,
splineCol = "blue",
errCol = "grey80",
plot.linewidth = 2,
plot.layout = c(2, 2),
parallel = FALSE,
cores = 2
)
spTable |
same as in gdm::plotUncertainty |
sampleSites |
same as in gdm::plotUncertainty. 0.3 was used in Gossner 2016. |
bsIters |
same as in gdm::plotUncertainty. 100 were used in Gossner 2016. |
geo |
same as in gdm::plotUncertainty |
splines |
same as in gdm::plotUncertainty |
To get an uncertainty at the maximum x value of a GDM model (corresponds to max y), the function 'plotUncertainty' from the 'gdm' package was slightly modified : all input stays the same. New : a table is generated which contains the estimate at maximum x and its standard deviation for each predictor separately. The plotting has been outcommented, as there is no plot output needed in this case. All edited placed are marked with '#EDIT' in the code
a data.table with 3 columns : the names of the predictors, the maximum effect size and its standard deviation
# read in gdminput from `results_nonpublic.R`.
test <- plotUncertainty_getsd(gdminput, sampleSites = 0.3, bsIters = 5, geo = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.