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

View source: R/gonadMat-main.R

plot.gonadMatR 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,
  showLegend = TRUE,
  legendPosition = "topleft",
  ...
)

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.

showLegend

to show or not the legend

legendPosition

a character string indicating the position of the legend.

...

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"))

ejosymart/ssmRG documentation built on Jan. 4, 2024, 9:06 p.m.