Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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:

texture=1:

Small crosses arranged in a square grid.

texture=2:

Parallel vertical lines.

texture=3:

Parallel horizontal lines.

texture=4:

Parallel diagonal lines at 45 degrees from the horizontal.

texture=5:

Parallel diagonal lines at 135 degrees from the horizontal.

texture=6:

Grid of horizontal and vertical lines.

texture=7:

Grid of diagonal lines at 45 and 135 degrees from the horizontal.

texture=8:

Grid of hexagons.

Author(s)

See Also

Examples

W <- Window(chorley)
  plot(W, main="")
  add.texture(W, 7)

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.