roundRect {RGraphics}R Documentation

Draw a rectangle with rounded corners

Description

Draw a rectangle with rounded corners.

Usage

roundRect <- function(x=unit(0.5, "npc"), 
                      y=unit(0.5, "npc"), 
                      width=unit(1, "npc"), 
                      height=unit(1, "npc"), 
                      r=unit(0.1, "snpc"),
                      just="centre",
                      name=NULL, gp=NULL, vp=NULL) 
grid.roundRect(...) 

Arguments

x, y, width, height The location and size of the rectangle.
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 NULL.
... Arguments to be passed to roundRect.

[Package RGraphics version 1.0-8 Index]