These functions are simple plotting helpers to get some quick
visuals of values produced by sim_abundance
,
sim_distribution
, etc.
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.
Sum across these ages
Plot color
Additional arguments to pass to plot_ly
.
Name of matrix in sim
list to plot.
Axes labels.
Grid produced by make_grid
.
Subset data to one or more ages.
Subset data to one or more years.
Plot type: "contour" or "heatmap".
Plot response on "natural" or "log" scale?
Subset to specific year
Subset to specific sim
Subset data to one or more surveys.
Quantile intervals to display on fan plot
Subset data to one or more length groups.
Select plot by "age", "length" or "year"?
Plot error surface by "rule" or "samples"?
Which strat values to focus on? (total, length, or age)
Returns a plot of class plotly
.