Description Usage Arguments Value See Also Examples
regular polygon grob
1 2 3 4 |
x |
x unit |
y |
y unit |
sides |
sides |
size |
size |
angle |
angle |
ar |
ar |
units.def |
units.def |
units.size |
units.size |
gp |
gpar |
grob
Other grob userlevel: arcTextGrob
,
barbedGrob
, borderGrob
,
colorstripGrob
, ebimageGrob
,
ellipseGrob
, interleaven
,
patternGrob
, pixmapGrob
,
rpatternGrob
, stextGrob
,
tableGrob
, virtualGrob
1 2 3 4 5 6 7 8 | pushViewport(dataViewport(0:1, 0:1, width=unit(2, "cm"), height=unit(2, "cm")))
xy <- polygon.regular(6, TRUE)
grid.ngon(0.5, 0.5, 6, 10, units.size="mm")
for(ii in 1:NROW(xy)){
grid.ngon(xy[ii, 1]+0.5, xy[ii, 2]+0.5, 6, 10, units.size="mm")
}
upViewport()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.