spatstat (version 1.37-0)

add.texture: Fill Plot With Texture

Description

Draws a simple texture inside a region on the plot.

Usage

add.texture(W, texture = 4, spacing = NULL, ...)

Arguments

W
Window (object of class "owin") inside which the texture should be drawn.
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.

Details

The chosen texture, confined to the window W, will be added to the current plot. The available textures are: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

See Also

owin, plot.owin, textureplot, texturemap.

Examples

Run this code
W <- as.owin(chorley)
  plot(W, main="")
  add.texture(W, 7)

Run the code above in your browser using DataCamp Workspace