rpatternGrob: rpatternGrob

Description Usage Arguments Value Examples

View source: R/rpattern.r

Description

rectangular grob with raster fill pattern

Usage

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

Examples

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

gridExtra documentation built on May 2, 2019, 4:59 p.m.