plot.gonadMat: Plot method for gonadMat class (size at gonad maturity)

Description Usage Arguments Examples

View source: R/gonadMat-main.R

Description

Plot method for gonadMat class (size at gonad maturity)

Usage

1
2
3
4
## 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 vertival lines in the histogram. The lines represent the the median and the confidece 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

1
2
3
4
5
6
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"))

Example output

Size at gonad maturity = 24.2 
Confidence intervals = 23.8 - 24.7 

sizeMat documentation built on Aug. 1, 2019, 1:05 a.m.