View source: R/polygon.fullhatch.R
polygon.fullhatch | R Documentation |
Create hatch area of one polygon
Create one line for hatch area of one polygon
polygon.fullhatch(
x,
y = NULL,
density,
angle,
..debug.hatch = FALSE,
fillOddEven = FALSE,
...
)
polygon.onehatch(
x,
y,
x0,
y0,
xd,
yd,
..debug.hatch = FALSE,
fillOddEven = FALSE,
...
)
x , y |
vectors containing the coordinates of the vertices of the polygon. |
density |
the density of shading lines, in lines per inch. The
default value of |
angle |
the slope of shading lines, given as an angle in degrees (counter-clockwise). |
..debug.hatch |
for drawing when debugging function |
fillOddEven |
logical controlling the polygon shading mode: see
below for details. Default |
... |
graphical parameters such as |
x0 |
parameter as issued from |
y0 |
parameter as issued from |
xd |
parameter as issued from |
yd |
parameter as issued from |
## Not run:
res <- polygon.fullhatch(x, density = 10, angle = 45)
arrows(res$lx1, res$ly1, res$lx2, res$ly2, col = "red", code = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.