Skip to contents

Draws a strip of translucent tape with torn ends along the line from (x, y) to (xend, yend), the building block of annotate_sketch_tape().

Usage

sketch_tape_grob(
  x,
  y,
  xend,
  yend,
  width = 0.18,
  seed = NULL,
  gp = gpar(fill = "#E3D6AFB3"),
  name = NULL,
  vp = NULL
)

Arguments

x, y, xend, yend

The strip's ends in npc [0,1] (scalars).

width

The strip's width in inches. Default 0.18.

seed

Integer seed for the torn ends.

gp

A gpar(); its fill colours the tape.

name, vp

Passed to grid::gTree().

Value

A SketchTapeGrob grob subclass.