sex.symbols {swfscMisc} | R Documentation |
Sex Symbols
Description
Plots male and female symbols on current plot.
Usage
sex.symbols(x, y, sex = 1, col = par("fg"), lwd = par("lwd"), cex = 1)
Arguments
x , y |
the |
sex |
a numeric vector containing the values 1 (male) or 2 (female). If of length one, then value is recycled for all symbols. |
col , lwd , cex |
color, line width, and character expansion for each point. |
Author(s)
Tim Gerrodette tim.gerrodette@noaa.gov
Examples
x <- runif(20, 0, 10)
y <- runif(20, 0, 200)
plot(x, y, type = "n")
sex.symbols(x, y, sex = 1:2, cex = 1.5, lwd = c(1.5, 4), col = c("blue", "red"))
[Package swfscMisc version 1.6.5 Index]