makevy: makevy make a y values vector

View source: R/rutils.R

makevyR Documentation

makevy make a y values vector

Description

makevy takes the top y value of a rectangle and the vertical increment downwards and defines a vector describing the four vertices of the rectangle topleft, topright, bottomright, bottomleft. topleft, when matched with makevx generates the descriptor for a complete rectangle.

Usage

makevy(init, inc)

Arguments

init

y-value for the top edge of a rectangle

inc

the y-increment subtracted from init to define the lower edge

Value

a vector of y-values

Examples

## Not run: 
 canvas(ystart=50,yfinish=93.5)
 polygon(makevx(2,27),makevy(90,6),col=0,lwd=1,border=1)

## End(Not run)

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