patternGrob: patternGrob

Description Usage Arguments Value See Also Examples

Description

pattern grob

Usage

1
2
3
4
5
6
7
  patternGrob(x = unit(0.5, "npc"), y = unit(0.5, "npc"),
    width = unit(1, "npc"), height = unit(1, "npc"),
    pattern = 2, orientation = 45,
    granularity = unit(5, "mm"), motif.col = "black",
    motif.fill = NULL, motif.alpha = 1, motif.cex = 1,
    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

pattern

integer

orientation

orientation

granularity

unimplemented

motif.col

motif.col

motif.fill

motif.fill

motif.alpha

motif.alpha

motif.cex

motif.cex

pattern.offset

pattern.offset

default.units

default.units

clip

clip

gp

gp

...

additional params to the grob

Value

grob of class pattern

See Also

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

Examples

1
2
3
4
grid.pattern(x=seq(1/6, 5/6, length=6), width=unit(1/8,"npc"), height=unit(0.5,"npc"),
            motif.width=unit(10, "mm"),  pattern=c(1:6), orientation=45, motif.alpha=0.5,
            motif.cex=c(1, 0.5), motif.col=1:2, motif.fill=NA,
            gp=gpar(fill="blue", lwd=2, alpha=0.5),  clip=TRUE)

ttriche/oldGridExtra documentation built on June 1, 2019, 2:51 a.m.