pattern: Generate a pattern in png format.

Description Usage Arguments Details Value Author(s)

View source: R/pattern.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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)


patternplot documentation built on April 21, 2020, 5:05 p.m.