Learn R Programming

Momocs (version 0.2-03)

coo.draw: Adds a single outline on the current plot.

Description

coo.draw is a light version of coo.plot that simply adds a shape on the active plot.

Usage

coo.draw(coo = NA, col = "#70809033",
         border = "#708090EE", lwd=1, lty = 1, points = FALSE,
         first.point=TRUE, centroid = FALSE,
         points.col = border, pch = 20, cex = 0.25,  ...)

Arguments

coo
A list or a matrix of coordinates.
col
A color to fill the shape polygon.
border
A color for the shape border.
lwd
The lwd for drawing shapes.
lty
The lty for drawing shapes.
points
logical. Whether to display points. If missing and number of points is < 100, then points are plotted.
first.point
logical. Whether to display the first point.
centroid
logical. Whether to display centroid.
points.col
The color for plotting points.
pch
The pch for points.
cex
The cex for points.
...
Additional parameters for drawing the first point.

Value

  • No returned value.

See Also

coo.plot.

Examples

Run this code
data(bot)
coo.plot(bot@coo[[1]])
coo.plot(bot@coo[[2]], lwd=1.2)

Run the code above in your browser using DataLab