makevx: makevx make an x values vector

View source: R/rutils.R

makevxR Documentation

makevx make an x values vector

Description

makevx takes the left x value of a rectangle and the increment rightwards that defines a vector describing the four vertices of the rectangle topleft, topright, bottomright, bottomleft, topleft. when matched with makevy generates the descriptor for a complete rectangle.

Usage

makevx(init, inc)

Arguments

init

x-value for the left-hand edge of a rectangle

inc

the x-increment added to init to define the right-hand edge

Value

a vector of y-values

Examples

## Not run: 
 plot(0:100,seq(58,93.5,length=101),type="n",xaxt="n",yaxt="n",
 xlab="",ylab="", bty="n")
 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.