A function to plot N at age

plot_NAtAge(SS, MAS, pdf_on = TRUE, byage = FALSE, years, ages)

Arguments

SS

the matrix of numbers at age from Stock Synthesis, where rows are ages

MAS

the matrix of numbers at age from MAS, where rows are ages

pdf_on

boolean, should the PDF be created? Default is TRUE

byage

boolean, should the numbers be plotted with each plot representing an age (default to FALSE) or a year?

years

the vector of years in the model

ages

the vector of ages in the model