filledcircle.Rdplots (part of) outer and inner circle and colors inbetween; color can be a palette.
radius of outer circle.
radius of inner circle.
midpoint of circle.
size of segments, in radians, to draw circle (decrease for smoother).
starting angle for circle segment, radians.
final angle for circle segment, radians. The segment is drawn counterclockwise. The default is to draw a full circle.
color palette to be used; also allowed are two extremes or one value.
if not NULL, a matrix providing (radius,z-values)
couples, used for coloring. .
Only if values is not NULL: the minimum and
maximum z values for which colors should be plotted, defaulting to the
range of the finite values of the second column of values.
width of external line.
line color.
arguments passed to R-function polygon.
returns, as invisible a list containing "xyouter" and "xyinner", the points that define the outer and inner ellipse.
see filledellipse for details
color <-graycol(n = 50)
dr <- 0.05
emptyplot(xlim = c(-2, 2), col = color[length(color)],
main = "filledcircle")
filledcircle(r1 = 1, mid = c(1, 1), dr = dr,
col = shadepalette(endcol = "darkblue"))
filledcircle(r1 = 1, mid = c(-1, -1), dr = dr,
col = shadepalette(endcol = "darkred"))
filledcircle(r1 = 1, r2 = 0.5, mid = c(0, 0), dr = dr,
col = c(rev(color), color))
filledcircle(r1 = 1, mid = c(1, -1), dr = dr,
col = intpalette(c("red", "blue", "orange"), 100))
filledcircle(mid = c(-1, 1))
emptyplot(main = "filledcircle")
for (i in seq(0, 0.45, 0.05))
filledcircle(r1 = i+0.05, r2 = i,
mid = c(0.5, 0.5), col = i*20)