add.texture | R Documentation |
Draws a simple texture inside a region on the plot.
add.texture(W, texture = 4, spacing = NULL, ...)
W |
Window (object of class |
texture |
Integer from 1 to 8 identifying the type of texture. See Details. |
spacing |
Spacing between elements of the texture, in units of the current plot. |
... |
Further arguments controlling the plot colour, line width etc. |
The chosen texture, confined to the window W
,
will be added to the current plot.
The available textures are:
Small crosses arranged in a square grid.
Parallel vertical lines.
Parallel horizontal lines.
Parallel diagonal lines at 45 degrees from the horizontal.
Parallel diagonal lines at 135 degrees from the horizontal.
Grid of horizontal and vertical lines.
Grid of diagonal lines at 45 and 135 degrees from the horizontal.
Grid of hexagons.
and \rolf
owin
,
plot.owin
,
textureplot
,
texturemap
.
W <- Window(chorley)
plot(W, main="")
add.texture(W, 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.