View source: R/plot.age.dist.r
plot.age.dist | R Documentation |
Plot the distribution of proportions of a chosen age class across year between quarters and region from a single model.
plot.age.dist(
rep,
ages,
year_range = (as.numeric(range(rep)["minyear"])):as.numeric(range(rep)["maxyear"]),
plot_type = "violin",
overlay_data = FALSE,
palette.func = default.model.colours,
save.dir,
save.name,
...
)
rep |
a MFCLRep object |
ages |
The age class that you want to plot the distribution of values across |
year_range |
The year range to plot the distribution of the recruitment over. Default is all years |
plot_type |
can be "violin" for a violin plot or "box" for a boxplot. Default is violin plot |
overlay_data |
Do you want to overlay the original data on the distribution? TRUE or FALSE (default). |
palette.func |
a function to determine the colours of each area. It is possible to determine your own palette function. Two functions currently exist: default.model.colours() and colourblind.model.colours(). |
save.dir |
Path to the directory where the output will be saved |
save.name |
Name stem for the output, useful when saving many model outputs in the same directory |
... |
Passes extra arguements to the palette function. Use the aurgument all.model.colours to ensure consistency of model colours when plottin a subset of models. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.