The R Project SVN R

Rev

Rev 68948 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 80079
Line 34... Line 34...
34
  At present, this function can only be used to draw \emph{one}
34
  At present, this function can only be used to draw \emph{one}
35
  rounded rectangle.
35
  rounded rectangle.
36
}
36
}
37
\examples{
37
\examples{
38
grid.roundrect(width=.5, height=.5, name="rr")
38
grid.roundrect(width=.5, height=.5, name="rr")
39
theta <- seq(0, 360, length=50)
39
theta <- seq(0, 360, length.out=50)
40
for (i in 1:50)
40
for (i in 1:50)
41
    grid.circle(x=grobX("rr", theta[i]),
41
    grid.circle(x=grobX("rr", theta[i]),
42
                y=grobY("rr", theta[i]),
42
                y=grobY("rr", theta[i]),
43
                r=unit(1, "mm"),
43
                r=unit(1, "mm"),
44
                gp=gpar(fill="black"))
44
                gp=gpar(fill="black"))