A simple wrapper around plot for plotting shapes. Widely used in Momocs in other graphical functions, in methods, etc.
Usage
coo_plot(
coo,
xlim,
ylim,
border = "#333333",
col = NA,
lwd = 1,
lty = 1,
points = FALSE,
first.point = TRUE,
cex.first.point = 0.5,
centroid = TRUE,
xy.axis = TRUE,
pch = 1,
cex = 0.5,
main = NA,
poly = TRUE,
plot.new = TRUE,
plot = TRUE,
zoom = 1,
...
)
ldk_plot(coo, ...)
Arguments
- coo
A
list
or amatrix
of coordinates.- xlim
If
coo_plot
is called andcoo
is missing, then a vector of length 2 specifying theylim
of the ploting area.- ylim
If
coo_plot
is called andcoo
is missing, then a vector of length 2 specifying theylim
of the ploting area.- border
A color for the shape border.
- col
A color to fill the shape polygon.
- 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 plot or not the first point.- cex.first.point
numeric
size of this first point- centroid
logical
. Whether to display centroid.- xy.axis
logical
. Whether to draw the xy axis.- pch
The
pch
for points.- cex
The
cex
for points.- main
character
. A title for the plot.- poly
logical whether to use polygon and lines to draw the shape, or just points. In other words, whether the shape should be considered as a configuration of landmarks or not (eg a closed outline).
- plot.new
logical
whether to plot or not a new frame.- plot
logical whether to plot something or just to create an empty plot.
- zoom
a numeric to take your distances.
- ...
further arguments for use in coo_plot methods. See examples.
See also
Other plotting functions:
coo_arrows()
,
coo_draw()
,
coo_listpanel()
,
coo_lolli()
,
coo_ruban()
,
ldk_chull()
,
ldk_confell()
,
ldk_contour()
,
ldk_labels()
,
ldk_links()
,
plot_devsegments()
,
plot_table()