| plot_results | R Documentation |
plot_results plots diagnostics, results, and indices for a given fitted model
plot_results(
fit,
settings = fit$settings,
plot_set = 3,
working_dir = getwd(),
year_labels = fit$year_labels,
years_to_plot = fit$years_to_plot,
category_names = fit$category_names,
strata_names = fit$strata_names,
use_biascorr = TRUE,
map_list = NULL,
check_residuals = TRUE,
cluster_results = TRUE,
projargs = "+proj=longlat",
zrange,
n_samples = 100,
calculate_relative_to_average = FALSE,
type = 1,
n_cells = NULL,
n_cells_residuals = NULL,
RotationMethod = "PCA",
quantiles = c(0.05, 0.5, 0.95),
similarity_metric = c("hclust", "Correlation", "Dissimilarity", "Covariance")[1],
...
)
fit |
Output from |
settings |
Output from |
plot_set |
integer-vector defining plots to create
|
working_dir |
Directory for plots |
year_labels |
character vector specifying names for labeling times |
years_to_plot |
integer vector, specifying positions of |
category_names |
character vector specifying names for labeling categories |
strata_names |
names for spatial strata |
map_list |
output from |
check_residuals |
Boolean indicating whether to run or skip residual diagnostic plots (which can be slow as currently implemented) |
cluster_results |
Boolean whether to run |
projargs |
Character passed to |
n_samples |
number of samples from the joint predictive distribution for fixed and random effects. Default is 100, which is slow. |
calculate_relative_to_average |
Boolean, whether to calculate edge in UTM coordinates (default), or instead calculate relative to median across all years. The latter reduces standard errors, and is appropriate when checking significance for comparison across years for a single species. The former (default) is appropriate for checking significance for comparison across species. |
type |
integer stating what type of simulation to use from the following options:
|
n_cells |
Integer used to determine the argument |
n_cells_residuals |
number of raster cells to use when plotting quantile residuals |
RotationMethod |
Method used for rotation when visualing factor decomposition results, Options: "PCA" (recommended) or "Varimax" |
quantiles |
vector specifying quantiles to use for calculating range edges |
similarity_metric |
approach used to visualize similarity among years/categories
resulting from estimated loadings matrices. Available options include
|
... |
additional settings to pass to |
This function takes a fitted VAST model and generates a standard set of diagnostic and visualization plots. It does this by calling a series of mid-level plotting functions; see list of functions in Value section of documentation.
In particular, for making customized maps of output please see plot_variable
Invisibly returns a tagged list of outputs generated by standard plots. See linked functions for details
dharmaResOutput from summary.fit_model, representing quantile residuals calculated using package DHARMa
Enc_probOutput from plot_encounter_diagnostic
IndexOutput from plot_biomass_index
ProportionsOutput from calculate_proportion
RangeOutput from plot_range_index
Dens_xtOutput from plot_maps
EdgeOutput from plot_range_edge
FactorsOutput from plot_factors
ClustersOutput from plot_clusters
VAST for general documentation, make_settings for generic settings, fit_model for model fitting, and plot_results for generic plots
Other wrapper functions:
fit_model(),
make_settings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.