View source: R/color2D.matplot.R
hexagon | R Documentation |
Draws a hexagon on the current graphic device
hexagon(x,y,unitcell=1,col=NA,border="black")
x,y |
x and y position of the bottom left corner of the square that would pack into the same space as the hexagon. |
unitcell |
The dimension of the side of the abovementioned square. |
col |
The color to fill the hexagon - default is no fill. |
border |
The color of the perimeter of the hexagon. |
nil
Draws a hexagon with the same center as a square that would pack into the same dimensions as the hexagon. That is, given a grid of squares with alternate rows shifted one half the length of the sides, the hexagons drawn would be close packed. Its use in the plotrix package is to provide an alternative unit cell for the ‘color2D.matplot’ function.
Jim Lemon
color2D.matplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.