Create hatch area of one polygon
polygon.fullhatch(
x,
y = NULL,
density,
angle,
..debug.hatch = FALSE,
fillOddEven = FALSE,
...
)
vectors containing the coordinates of the vertices of the polygon.
the density of shading lines, in lines per inch. The
default value of NULL
means that no shading lines are drawn.
A zero value of density
means no shading nor filling whereas
negative values and NA
suppress shading (and so allow
color filling).
the slope of shading lines, given as an angle in degrees (counter-clockwise).
for drawing when debugging function
logical controlling the polygon shading mode: see
below for details. Default FALSE
.
graphical parameters such as xpd
, lend
,
ljoin
and lmitre
can be given as arguments.
if (FALSE) {
res <- polygon.fullhatch(x, density = 10, angle = 45)
arrows(res$lx1, res$ly1, res$lx2, res$ly2, col = "red", code = 0)
}