circles.plot | R Documentation |
plot.circles
creates a plot with one or more
circles (or adds them to an existing plot).
circles.plot(
coords,
r,
add = FALSE,
...,
nv = 100,
border = NULL,
ccol = NA,
clty = 1,
density = NULL,
angle = 45,
clwd = 1
)
coords |
A matrix of coordinates with the centroid of each circle. |
r |
A vector containing the radii of the circles.
The length of |
add |
A logical value indicating whether the circles
should be added to an existing plot. Default is
|
... |
Additional arguments passed to the
|
nv |
Number of vertices to draw the circle. |
border |
A vector with the desired border of each
circle. The length should either be 1 (in which case
the border is repeated for all circles) or should match
the number of rows of |
ccol |
A vector with the desired color of each
circle. The length should either be 1 (in which case
the color is repeated for all circles) or should match
the number of rows of |
clty |
A vector with the desired line type of each
circle. The length should either be 1 (in which case
the line type is repeated for all circles) or should match
the number of rows of |
density |
A vector with the density for a patterned fill.
The length should either be 1 (in which case
the density is repeated for all circles) or should match
the number of rows of |
angle |
A vector with the angle of a patterned fill.
The length should either be 1 (in which case
the angle is repeated for all circles) or should match
the number of rows of |
clwd |
A vector with the desired line width of each
circle. The length should either be 1 (in which case
the line width is repeated for all circles) or should match
the number of rows of |
Joshua French
draw.circle
, polygon
co = cbind(c(1, 2, 5, 6, 9), c(1, 2, 5, 6, 9))
r = c(1.25, 1.25, 1.25, 1.25, 1.25)
# draw circles
circles.plot(co, r)
circles.plot(co, r,
ccol = c("blue", "blue", "orange", "orange", "brown"),
density = c(10, 20, 30, 40, 50),
angle = c(45, 135, 45, 136, 90))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.