| gridpattern-package | R Documentation |
Provides 'grid' grobs that fill in a user-defined area with various patterns. Includes enhanced versions of the geometric and image-based patterns originally contained in the 'ggpattern' package as well as original 'pch', 'polygon_tiling', 'regular_polygon', 'rose', 'text', 'wave', and 'weave' patterns plus support for custom user-defined patterns.
The following gridpattern options may be set globally via base::options():
Set custom “array” pattern functions.
Set custom “geometry” pattern functions.
Set custom raster image resolution (pixels per inch) for certain patterns.
If TRUE use the grid clipping path feature introduced in R v4.1.0.
If FALSE do a rasterGrob approximation of the clipped pattern.
If NULL try to guess an appropriate choice.
If TRUE sets the default for all the other
ggpattern_use_R4.1_* options arguments to TRUE.
If FALSE sets them to FALSE.
If TRUE use the grid gradient feature introduced in R v4.1.0.
If FALSE do a rasterGrob approximation of the gradient pattern.
If NULL try to guess an appropriate choice.
If TRUE use the grid mask feature introduced in R v4.1.0.
If FALSE do a rasterGrob approximation of the masked pattern.
If NULL try to guess an appropriate choice.
If TRUE use the grid pattern feature introduced in R v4.1.0.
Currently only used by a couple of examples.
Note to use the R v4.1.0 features one needs R be (at least) version 4.1 and not all graphic devices support any/all these features. See https://www.stat.auckland.ac.nz/~paul/Reports/GraphicsEngine/definitions/definitions.html for more information on these features.
Maintainer: Trevor L. Davis trevor.l.davis@gmail.com (ORCID)
Authors:
Mike FC (Code/docs adapted from ggpattern)
Other contributors:
ggplot2 authors (some utility functions copied from ggplot2) [contributor]
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.