Length Frequency Distribution
The function estimates for the selected sex the time series of the length frecency distribution (LFD)
LFD(merge_TATC, indices, sex, LC, depth_range, type)
merge_TATC |
data frame cantaining the hauls data (TA, table A) and the biological data (TC, table C) merged together |
indices |
data frame with the time series of the abundance indices as estimated by the function index.ts() |
sex |
string code of the selected sex. Permitted values: "c" (sex combined), "f" (females), and "m" (males). |
LC |
numerical value of the minimum length class interval (expressed in mm) |
depth_range |
vector of the depth range for the analysis |
type |
string value to select the type of graph to be plotted. Allowed values: "indices", "density" and "boxplot" |
the function returns a data frame in which the first column is the list of the lenght classes reported in the TC file and in the other columns are reported the abundance indices (n/km2) for each year of the time series by length class.
Walter Zupa
library(MEDITS) merge_TATB <- m.TATB(TA,TB,"ARISFOL") merge_TATC <- m.TATC(TA,TC,"ARISFOL") GSA <- unique(TA$AREA) indices <- index.ts(merge_TATB,GSA,"ARISFOL",index = "abundance", depth_range=c(200,800),sex="f", sampling = "RSS",plot=FALSE) LFD(merge_TATC,indices,sex="f",LC=1,depth_range=c(200,800), type = "indices")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.