Alternate call for grid::pattern() with different defaults

ig_pattern(
  grob,
  x = 0.5,
  y = 0.5,
  width = 1,
  height = 1,
  default.units = getOption("ingrid.default.units", "npc"),
  just = "centre",
  hjust = NULL,
  vjust = NULL,
  extend = c("repeat", "pad", "reflect", "none"),
  gp = gpar(fill = "transparent"),
  centred = TRUE
)

Arguments

grob

grob

x, y

default 0,0

width, height

default: 20,20

default.units

getOption("ingrid.default.units", 'npc')

just

justification. default: centre

hjust, vjust

other justification parameters

extend

default: 'repeat'

gp

graphical parameters

centred

default: TRUE. (x, y) will be offset from (0.5npc, 0.5npc)