makevy | R Documentation |
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.
makevy(init, inc)
init |
y-value for the top edge of a rectangle |
inc |
the y-increment subtracted from init to define the lower edge |
a vector of y-values
## Not run:
canvas(ystart=50,yfinish=93.5)
polygon(makevx(2,27),makevy(90,6),col=0,lwd=1,border=1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.