| rpatternGrob {gridExtra} | R Documentation |
rectangular grob with raster fill pattern
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), ...)
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 |
grob of class rpattern
Other grob userlevel: arcTextGrob,
barbedGrob, borderGrob,
colorstripGrob, ebimageGrob,
ellipseGrob, interleaven,
ngonGrob, patternGrob,
pixmapGrob, stextGrob,
tableGrob, virtualGrob
.lines45 <- matrix("white", ncol=100, nrow=100)
diag(.lines45) <- "black"
grid.rpattern(motif=.lines45)