Learn R Programming

Momocs (version 0.2-03)

coo.plot: Plots a single outline.

Description

coo.plot is a simple wrapper for plotting shapes. It basically tunes standard plot function to display single shapes as polygons, within a standardised plotting area.

Usage

coo.plot(coo=NA, col="#F5F5F5",
         border="#1A1A1A", lwd=1, lty = 1, xlim=c(-1, 1), ylim=c(-1, 1),
         points=FALSE, first.point=TRUE, centroid=TRUE,
         points.col=border, pch=1, cex=0.8, main, ...)

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.
xlim
If coo.plot is called and coo is missing, then a vector of length 2 specifying the ylim of the ploting area.
ylim
If coo.plot is called and coo is missing, then a vector of length 2 specifying the ylim of the ploting area.
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.
main
character. A title for the plot.
...
Additional parameters for drawing the first point.

Value

  • No returned value.

See Also

coo.draw.

Examples

Run this code
data(bot)
coo.plot(bot@coo[[1]])

Run the code above in your browser using DataLab