plot.gonadMat {sizeMat} | R Documentation |
Plot method for gonadMat class (size at gonad maturity)
Description
Plot method for gonadMat class (size at gonad maturity)
Usage
## S3 method for class 'gonadMat'
plot(
x,
xlab = "X",
ylab = "Proportion mature",
col = c("blue", "red"),
lwd = 2,
lty = 2,
vline_hist = "black",
lwd_hist = 2,
lty_hist = 2,
onlyOgive = FALSE,
...
)
Arguments
x |
object of class 'gonadMat' with the mature parameters and a data.frame with the X and stage of sexual maturity. variables. Also the fitted values for the logistic regression and confidence intervals (95%). |
xlab |
a title for the x axis. |
ylab |
a title for the y axis. |
col |
color for the logistic curve and for the L50% size at gonad maturity. |
lwd |
line with for drawing fitted values and confidence intervals. |
lty |
line type line type for drawing fitted values and confidence intervals |
vline_hist |
color of the vertical lines in the histogram. The lines represent the the median and the confidence intervals. |
lwd_hist |
line with for the vertical line in the histogram. |
lty_hist |
line type for the vertical line in the histogram. |
onlyOgive |
plot only the ogive. |
... |
Additional arguments to the plot method. |
Examples
data(matFish)
gonad_mat = gonad_mature(matFish, varNames = c("total_length", "stage_mat"), inmName = "I",
matName = c("II", "III", "IV"), method = "fq", niter = 50)
plot(gonad_mat, xlab = "Total length (cm.)", ylab = "Proportion mature", col = c("blue", "red"))