plot_comp_resids: plot_comp_resids

View source: R/plot_comp_resids.R

plot_comp_residsR Documentation

plot_comp_resids

Description

A function that generates a plot of residuals for compositional data.

Usage

plot_comp_resids(resids_matrix, show_legend = TRUE)

Arguments

resids_matrix

a matrix[years,bins] that are standardised residuals from compositional data, rownames(resids_matrix) = years (y-axis), colnames(resids_matrix) = ages/length

show_legend

bool create a legend

Value

a ggplot bubble plot

Author(s)

C.Marsh

Examples

## Not run: 
resids = matrix(rnorm(100), 10, 10
colnames(resids) = 1:10
plt = plot_comp_resids(resids_matrix = resids, show_legend  = T)

## End(Not run)

Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.