
S3 class for multiple-resource size spectra
Source:R/ArrayResource-class.R
MRArrayResourceBySize.RdSeveral mizerMR functions return a resource x size matrix holding a
resource-related quantity such as the resource number density or the
resource mortality. The MRArrayResourceBySize class wraps such a matrix to
provide convenient print(), summary(), plot(), and as.data.frame()
methods. It is the multiple-resource analogue of mizer's
ArrayResourceBySize class.
Arguments
- x
A matrix (resource x size), with resource names as row names.
- value_name
A string giving the human-readable name for the value.
- units
A string giving the units (e.g. "1/year").
- params
A MizerParams object. Used for the resource colours and the size grid in the
plot()method.
Details
An MRArrayResourceBySize object behaves just like a regular matrix for
arithmetic and subsetting. It carries value_name, units and params
attributes, mirroring the mizer array classes.