Description Usage Arguments Value See Also Examples
Function to plot relative contribution of biomass and numbers per cohort.
1 2 |
data |
Dataframe to be plotted. |
x |
x-variable. Default is |
y |
y-variable. Default is |
fill |
Column to use as filling colour. Default is |
wrap |
Wraping column. Default is |
ncol |
Number of columns in multipanel plot. Default is |
ggplot2 object
Other plot functions: plot_boxes
,
plot_diet_bec_dev
, plot_diet
,
plot_line
, plot_rec
,
plot_species
1 2 3 4 5 6 7 8 9 10 11 12 13 | plot_bar(preprocess$biomass)
# Most models have a large number of groups. Please make sure to combine groups with a low
# contribution prior to plotting with \code{\link{combine_groups}}.
df <- combine_groups(preprocess$biomass, group_col = "species", combine_thresh = 3)
plot_bar(df)
# This function can also be used to plot age-specific data.
plot_bar(preprocess$nums_age, fill = "agecl", wrap = "species")
# Please use \code{\link{agg_perc}} to visualize the relative cohort structure over time.
df <- agg_perc(preprocess$nums_age, groups = c("time", "species"))
plot_bar(df, fill = "agecl", wrap = "species")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.