rounded.rect: Draws a rounded rectangle.

Description Usage Arguments

View source: R/rounded.rect.R

Description

Draws a rounded rectangle.

Usage

1
2
rounded.rect(origin = 0, w = 1, h = 1, r = 0.1, n = 100,
  plot = TRUE, adjust = FALSE, by = "hw", ...)

Arguments

origin

is the origin of the rounded rectangle.

w

is the width of the rounded rectangle.

h

is the height of the rounded rectangle.

r

is the radius of the rounded corners as a fraction on 'w'.

n

is the number of points along the rounded corners of the rounded rectangle.

plot

is whether the rounded rectangle is to be plotted or not.

adjust

is TRUE if the rounded corners should appear as circles regardless of the frame dimensions.

by

is along which of width, height or both, the adjustment for reshaped window dimensions of the rounded rectangles are to be done.

...

are parameters like 'col' and 'border' used in polygon().


arnejohannesholmin/echoIBM documentation built on March 19, 2018, 9:16 a.m.