gridExtra (version 0.7)

rpatternGrob: rpatternGrob

Description

rectangular grob with raster fill pattern

Usage

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

Run this code
.lines45 <- matrix("white", ncol=100, nrow=100)
diag(.lines45) <- "black"
grid.rpattern(motif=.lines45)

Run the code above in your browser using DataCamp Workspace