plot.EnsembleSample {EcoEnsemble} | R Documentation |
Plot the ensemble output
Description
Plots the latent variables predicted by the ensemble model, along with simulator outputs and observations.
Usage
## S3 method for class 'EnsembleSample'
plot(x, variable = NULL, quantiles = c(0.05, 0.95), ...)
Arguments
x |
An |
variable |
The name of the variable to plot. This can either be a |
quantiles |
A |
... |
Other arguments passed on to methods. Not currently used. |
Value
The ggplot
object.
Examples
priors <- EnsemblePrior(4)
prior_density <- prior_ensemble_model(priors, M = 4)
samples <- sample_prior(observations = list(SSB_obs, Sigma_obs),
simulators = list(list(SSB_miz, Sigma_miz),
list(SSB_ewe, Sigma_ewe),
list(SSB_fs, Sigma_fs),
list(SSB_lm, Sigma_lm)),
priors = priors,
sam_priors = prior_density)
plot(samples) #Plot the prior predictive density.
plot(samples, variable="Herring")
[Package EcoEnsemble version 1.1.2 Index]