View source: R/assignLSCompare.R
assignLSCompare | R Documentation |
Compares the morphometric life stage assignment to the analytical life stage assignment. The comparison is presented through both a confusion matrix and a plot.
assignLSCompare( Data, muLIST, sigmaLIST, SAVE = TRUE, output.file = output.file )
Data |
A data.frame of the catch data with both the morphometric and analytical life stage assignments. |
muLIST |
A list of matrices. The names of the elements in the list need
to correspond to the final run names in the catch data. The columns of each
matrix correspond to the mean vector from the mixture distribution from
|
sigmaLIST |
A list of 3d arrays. The names of the elements in the list
need to correspond to the final run names in the catch data. The third
dimension indexes the different life stage groups, for which a matrix of
the variance covariance exists, from the mixture distribution from
|
SAVE |
Default is TRUE, a plot (PDF file) and confusion matrix (CSV
file) for each final run is saved in the |
output.file |
A text string indicating a prefix to append to all output. |
This function is only intended to be called within the
assignLifeStage
function.
The confusion matrix's rows correspond to the morphometric life stage
assignment (labeled bioLS
) and the columns the analytical life stage
assignment. The cells of the confusion matrix present the number of fish.
The plot symbols are circle on the horizontal axis and fish fork length on the vertical axis, the color of the symbol refers to the analytical assignment and the symbol type indicated the morphometic assignment. The colors are red (Small), green (Medium), blue (Large), and orange (All). The circle (Fry), triangle (Parr), and plus sign (Smolt). For example if a fish was morphometrically assigned as a Parr and analytically assigned as a Large the plot symbol would be a blue triangle.
NA
Jared Studyvin WEST Inc.
assignLifeStage
## Not run: #insert examples ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.