plot.classify {sizeMat} | R Documentation |
Plot method for classify class
Description
Plot method for classify class
Usage
## 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
data(crabdata)
classify_data = classify_mature(crabdata, varNames = c("carapace_width", "chela_height"),
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")
[Package sizeMat version 1.1.2 Index]