Learn R Programming

ggpattern (version 0.1.3)

create_magick_pattern_img: Create one of imagemagick's internal patterns

Description

These are all 2-colour pixel patterns - the 'white' part will be made transparent.

Usage

create_magick_pattern_img(
  width = 100,
  height = 100,
  type = "hexagons",
  colour = "black"
)

Arguments

width, height

image dimensions

type

name of the imagemagick pattern. See http://www.imagemagick.org/script/formats.php for more information. See magick_pattern_names for a list of all supported imagemagick patterns.

colour

colour used to draw the pattern