makevx | R Documentation |
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.
makevx(init, inc)
init |
x-value for the left-hand edge of a rectangle |
inc |
the x-increment added to init to define the right-hand edge |
a vector of y-values
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.