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
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)


chunqiaoluo/patternplot_0.3.2 documentation built on March 7, 2020, 12:46 a.m.