plot_index | R Documentation |
plot_index
takes output from a VAST run and plots a panel figure of time-series estimates
plot_index(
Index_ctl,
sd_Index_ctl = array(0, dim(Index_ctl)),
year_labels = NULL,
years_to_plot = NULL,
strata_names = NULL,
category_names = NULL,
scale = "uniform",
plot_legend = NULL,
DirName = getwd(),
PlotName = "Index.png",
interval_width = 1,
width = NULL,
height = NULL,
xlab = "Year",
ylab = "Index",
bounds_type = "whiskers",
col = NULL,
col_bounds = NULL,
Yrange = c(0, NA),
type = "b",
plot_lines_args = list(),
plot_args = list(),
SampleSize_ctz = NULL,
Y2range = c(0, NA),
y2lab = "",
add = FALSE,
...
)
Index_ctl |
A matrix or array of time-series estimates for multiple categories |
sd_Index_ctl |
A matrix or array of variances for each estimate |
year_labels |
character vector specifying names for labeling times |
years_to_plot |
integer vector, specifying positions of |
strata_names |
names for spatial strata |
category_names |
names for categories (if using package |
plot_legend |
Add legend for labelling colors |
DirName |
Directory for saving plot and table |
PlotName |
Name for plot |
interval_width |
width for confidence intervals |
width |
plot width in inches |
height |
plot height in inches |
Yrange |
lower and upper bound for left-hand y-axis, corresponding to input |
plot_lines_args |
additional arguments to pass to |
plot_args |
additional arguments to pass to |
SampleSize_ctz |
optional array of sample sizes for each category and year to be plotted on each panel |
Y2range |
lower and upper bound for right-hand y-axis, corresponding to input |
... |
list of settings to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.