Learn R Programming

ggpattern (version 0.1.3)

create_magick_pattern_img_scaled: Create a scaled version 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_scaled(
  width = 100,
  height = 100,
  type = "hexagons",
  colour = "black",
  scale = 1,
  filter = "box"
)

Arguments

width

image dimensions

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

scale

pattern scaling factor defualt: 1

filter

filter to apply when sacling pattern. default: 'box' for crisp edges to the pixel. See magick::filter_types() for a full list of filters.