R/plot-bar.R
plot_bar.Rd
Function to plot relative contribution of biomass and numbers per cohort.
plot_bar( data, x = "time", y = "atoutput", fill = "species", wrap = NULL, ncol = NULL )
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()
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")