Description Usage Arguments Details Examples
Draw a single rectangle with rounded corners.
1 2 3 4 5 6 | roundrectGrob(x=0.5, y=0.5, width=1, height=1,
default.units="npc",
r=unit(0.1, "snpc"),
just="centre",
name=NULL, gp=NULL, vp=NULL)
grid.roundrect(...)
|
x, y, width, height |
The location and size of the rectangle. |
default.units |
A string indicating the default units to use
if |
r |
The radius of the rounded corners. |
just |
The justification of the rectangle relative to its location. |
name |
A name to identify the grob. |
gp |
Graphical parameters to apply to the grob. |
vp |
A viewport object or |
... |
Arguments to be passed to |
At present, this function can only be used to draw one rounded rectangle.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.