reslr_mcmc
function.R/plot.reslr_output.R
plot.reslr_output.Rd
Depending on the model chosen in the reslr_mcmc
function, the package produces a range of output plots.
Total posterior model fit plot with the raw data and measurement uncertainty are created for each statistical model.
The rate of change plots are created for the EIV IGP and the NI spline regression models.
For the NI GAM decomposition, each individual component of the model is plotted. Also, the regional and the non-linear local component, an associated rate plot is produced.
If tide gauges are used in the model, the user has the ability plot the output with or without this additional data source.
An object of class reslr_output
and model_type
created via reslr_mcmc
Plotting the proxy records on their own and this is the default
Plotting the tide gauge data as well as proxy data
Plotting a title on the output plots
The user can select the type of output plot they require from the following: "rate_plot", "model_fit_plot", "regional_plot", "regional_rate_plot", "linear_local_plot", "non_linear_local_plot", "non_linear_local_rate_plot", "nigam_component_plot"
Plotting an informed caption with the number of tide gauges and proxy sites.
Labeling the x-axis
Labeling the y-axis
Labeling the y-axis for rate of change plots
Not used
Plot of model fit and the rate of change depending on the statistical model in question.
# \donttest{
data <- NAACproxydata %>% dplyr::filter(Site == "Cedar Island")
x <- reslr_load(data = data)
jags_output <- reslr_mcmc(x, model_type = "eiv_slr_t")
#> Compiling model graph
#> Resolving undeclared variables
#> Allocating nodes
#> Graph information:
#> Observed stochastic nodes: 208
#> Unobserved stochastic nodes: 107
#> Total graph size: 1003
#>
#> Initializing model
#>
plot(x = jags_output)# }