circ_rect: Draw rectangle

Description Usage Arguments Examples

View source: R/plot.R

Description

Draw rectangle

Usage

1
circ_rect(xleft, ybottom, xright, ytop, increasing = TRUE, ...)

Arguments

xleft

a vector (or scalar) of left x positions.

ybottom

a vector (or scalar) of bottom y positions.

xright

a vector (or scalar) of right x positions.

ytop

a vector (or scalar) of top y positions.

increasing

Draw from low to high x values.

...

Passed on to rect.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
circ_plot()
circ_par_init()
ring_set(1)
circ_rect(0,0,.2,1, col="#FF000030")
ring_set(2)
circ_rect(1,0,.2,1, col="#FF000030")

# rectangles are drawn using increasing values by default.
ring_set(3)
circ_rect(1,0,.2,1, increasing=FALSE, col="#FF000030")

markheckmann/circplot documentation built on May 21, 2019, 12:06 p.m.