Description Usage Arguments Details Author(s) See Also Examples

plots (part of) outer and inner circle and colors inbetween; color can be a palette.

1 2 |

`r1 ` |
radius of outer circle. |

`r2 ` |
radius of inner circle. |

`mid ` |
midpoint of circle. |

`dr ` |
size of segments, in radians, to draw circle (decrease for smoother). |

`from ` |
starting angle for circle segment, radians. |

`to ` |
final angle for circle segment, radians. The segment is drawn counterclockwise. The default is to draw a full circle. |

`col ` |
color palette to be used; also allowed are two extremes or one value. |

`values ` |
if not |

`zlim ` |
Only if |

`lwd ` |
width of external line. |

`lcol ` |
line color. |

`... ` |
arguments passed to R-function polygon. |

see `filledellipse`

for details

Karline Soetaert <[email protected]>

`filledshape`

, `filledcylinder`

,
`filledellipse`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ```
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)
``` |

shape documentation built on Feb. 9, 2018, 6:08 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.