makerect | R Documentation |
makerect draws a rectangle after canvas has been called
makerect(left, xinc, top, yinc, linecol = "grey", lwd = 1, col = NULL)
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 |
a vector denoting the center (x,y) of the rectangle
## Not run:
canvas(ystart=50,yfinish=93.5)
makerect(left=2,xinc=27,top=90,yinc=6)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.