pattern {patternplot}R Documentation

Generate a pattern in png format.

Description

The pattern function is a function for generating a pattern in png format.

Usage

pattern(
  type = "bricks",
  density = 8,
  pattern.line.size = 10,
  color = "black",
  background.color = "white",
  pixel = 5,
  res = 30
)

Arguments

type

pattern types include: 'blank', 'bricks', 'vdashes', 'hdashes', 'crosshatch','dots', 'grid','hlines','nelines','nwlines','vlines','waves','Rsymbol_0' to 'Rsymbol_25', and unicode symbols.

density

a numeric number, the density for the lines/dots of a pattern.

pattern.line.size

a numeric value, the line size for the lines/dots of a pattern.

color

color for the lines/dots of pattern.

background.color

color to be filled in the background.

pixel

a numeric value, the pixel resolution of the pattern.

res

a numeric value, the pixel resolution of the pattern.

Details

pattern function generates a pattern in png format.

Value

A ggplot object.

Author(s)

Chunqiao Luo (chunqiaoluo@gmail.com)


[Package patternplot version 1.0.0 Index]