plot.morphMat: Plot method for morphMat class (size at morphometric...

Description Usage Arguments Examples

View source: R/morphMat-main.R

Description

Plot method for morphMat class (size at morphometric maturity)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'morphMat'
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 'morphMat' with the mature parameters and a data.frame with the allometric variables ("X", "Y") and classification of maturity. 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 morphometric 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

1
2
3
4
5
6
7
8
data(crabdata)

classify_data = classify_mature(crabdata, varNames = c("carapace_width", "chela_height"),
varSex = "sex_category", selectSex = NULL, method = "ld")

my_mature = morph_mature(classify_data, method = "fq", niter = 50)

plot(my_mature, xlab = "Carapace width (mm.)", ylab = "Proportion mature", col = c("blue", "red"))

sizeMat documentation built on July 8, 2020, 7:27 p.m.