plot.classify: Plot method for classify class

Description Usage Arguments Examples

View source: R/morphMat-main.R

Description

Plot method for classify class

Usage

1
2
3
4
## S3 method for class 'classify'
plot(x, xlab = "X", ylab = "Y", col = c(1, 2),
  pch = c(4, 5), cex = c(1, 1), lty_lines = c(1, 1),
  lwd_lines = c(1, 1), legendPlot = TRUE, cex_label = 0.8, ...)

Arguments

x

an object of class 'classify' with the allometric variables ("X", "Y") and classification of maturity (juveniles = 0, adults = 1).

xlab

a title for the x axis.

ylab

a title for the y axis.

col

the colors for juveniles and adults group.

pch

the character indicating the type of plotting.

cex

character expansion in the regression.

lty_lines

the line type in the regression.

lwd_lines

the line width in the regression.

legendPlot

legend in the plot (FALSE or TRUE).

cex_label

size of the legendPlot

...

Additional arguments to the plot method.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(crabdata)

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

## Showing different plots
plot(classify_data, xlab = "X")

plot(classify_data, xlab = "X", ylab = "Y", col = c(1, 2), pch = c(4, 5), cex = c(1, 3))

plot(classify_data, xlab = "Carapace width (mm.)", ylab = "Y", col = c(1, 2),
pch = c(4, 5), cex = c(1, 3), lwd_lines = c(1, 3))

plot(classify_data, xlab = "Carapace width (mm.)", ylab = "Y", col = c(1, 2),
pch = c(4, 5), cex = c(1, 3), lwd_lines = c(1, 3), main = "Classification")

Example output

all individuals were used in the analysis 

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