rpatternGrob: rpatternGrob

Description Usage Arguments Value See Also Examples

View source: R/rpattern.r

Description

rectangular grob with raster fill pattern

Usage

1
2
3
4
5
6
7
  rpatternGrob(x = unit(0.5, "npc"), y = unit(0.5, "npc"),
    width = unit(1, "npc"), height = unit(1, "npc"),
    motif = matrix("white"), AR = 1,
    motif.width = unit(5, "mm"),
    motif.height = AR * motif.width,
    pattern.offset = c(0, 0), default.units = "npc",
    clip = TRUE, gp = gpar(fill = NA), ...)

Arguments

x

x unit

y

y unit

width

width

height

height

motif

motif

AR

AR

motif.width

motif.width

motif.height

motif.height

pattern.offset

pattern.offset

default.units

default.units

clip

clip

gp

gp

...

additional params passed to the grob

Value

grob of class rpattern

See Also

Other grob userlevel: arcTextGrob, barbedGrob, borderGrob, colorstripGrob, ebimageGrob, ellipseGrob, interleaven, ngonGrob, patternGrob, pixmapGrob, stextGrob, tableGrob, virtualGrob

Examples

1
2
3
.lines45 <- matrix("white", ncol=100, nrow=100)
diag(.lines45) <- "black"
grid.rpattern(motif=.lines45)

ttriche/oldGridExtra documentation built on May 27, 2017, 4:47 p.m.