These are simple plotting helpers to quickly visualize outputs from
sim_abundance()
, sim_distribution()
, and related simulation functions.
plot_trend(sim, sum_ages = sim$ages, col = viridis::viridis(1), ...)
plot_surface(sim, mat = "N", xlab = "Age", ylab = "Year", zlab = mat, ...)
plot_grid(grid, ...)
plot_distribution(
sim,
ages = sim$ages,
years = sim$years,
type = "contour",
scale = "natural",
...
)
plot_survey(sim, which_year = 1, which_sim = 1)
plot_total_strat_fan(sim, surveys = 1:5, quants = seq(90, 10, by = -10), ...)
plot_length_strat_fan(
sim,
surveys = 1:5,
years = 1:10,
lengths = 1:50,
select_by = "year",
quants = seq(90, 10, by = -10),
...
)
plot_age_strat_fan(
sim,
surveys = 1:5,
years = 1:10,
ages = 1:10,
select_by = "year",
quants = seq(90, 10, by = -10),
...
)
plot_error_surface(sim, plot_by = "rule")
plot_survey_rank(sim, which_strat = "age")
Object returned by sim_abundance()
, sim_distribution()
, etc.
Vector of ages to sum across.
Plot color.
Additional arguments passed to plotly::plot_ly()
.
Name of the matrix in the sim
list to plot.
Axis labels.
Grid produced by make_grid()
.
Subset the data to one or more ages.
Subset the data to one or more years.
Plot type: "contour"
or "heatmap"
.
Plot response on "natural"
or "log"
scale.
Subset to a specific year.
Subset to a specific simulation replicate.
Subset the data to one or more surveys.
Quantile intervals to display on the fan plot.
Subset the data to one or more length groups.
Select plot by "age"
, "length"
, or "year"
.
Plot error surface by "rule"
or "samples"
.
Stratification focus: "total"
, "length"
, or "age"
.
A plot of class plotly
.