Skip to contents

A grid grob that re-roughens its path at actual render resolution in makeContent(). Coordinates are in npc [0,1]; roughening is performed in device inches.

Usage

sketch_path_grob(
  x,
  y,
  id = NULL,
  roughness = 1,
  bowing = 1,
  n_passes = 2L,
  seed = NULL,
  gp = gpar(),
  name = NULL,
  vp = NULL
)

Arguments

x, y

Numeric vectors of npc [0,1] coordinates.

id

Integer vector grouping coordinates into separate polylines (same semantics as grid::polylineGrob). NULL treats all points as one path.

roughness, bowing, n_passes, seed

Sketch parameters.

gp

A grid::gpar() object controlling line aesthetics.

name, vp

Passed to grid::grob().

Value

A SketchPathGrob (a grid grob subclass).

See also