sex.symbols | R Documentation |
Plots male and female symbols on current plot.
sex.symbols(x, y, sex = 1, col = par("fg"), lwd = par("lwd"), cex = 1)
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. |
Tim Gerrodette tim.gerrodette@noaa.gov
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.