Examples for 'grid::roundrect'


Draw a rectangle with rounded corners

Aliases: roundrect grid.roundrect roundrectGrob

Keywords: dplot

### ** Examples

grid.roundrect(width=.5, height=.5, name="rr")
theta <- seq(0, 360, length.out=50)
for (i in 1:50)
    grid.circle(x=grobX("rr", theta[i]),
                y=grobY("rr", theta[i]),
                r=unit(1, "mm"),
                gp=gpar(fill="black"))
plot of chunk example-grid-roundrect-1

[Package grid version 4.2.3 Index]