makerect: makerect draws a rectangle once a plot is available

View source: R/rutils.R

makerectR Documentation

makerect draws a rectangle once a plot is available

Description

makerect draws a rectangle after canvas has been called

Usage

makerect(left, xinc, top, yinc, linecol = "grey", lwd = 1, col = NULL)

Arguments

left

defines lefthand edge of rectangle

xinc

left + xinc defines right-hand edge or rectangle

top

defines top edge of rectangle

yinc

top - yincdefines bottom edge of rectangle

linecol

colour of line. default="grey"

lwd

the width of the line, default=1

col

the fill colour of the polygon drawn. default=NULL so not filled

Value

a vector denoting the center (x,y) of the rectangle

Examples

## Not run: 
   canvas(ystart=50,yfinish=93.5)
   makerect(left=2,xinc=27,top=90,yinc=6)

## End(Not run)

haddonm/rutilsMH documentation built on July 21, 2023, 8:46 p.m.