Add QR Code to Tracker

qr(
  tracker,
  qr_content,
  color = "black",
  color_bg = "white",
  height_tracker,
  position,
  justification,
  ...
)

add_qr(tracker, ...)

# S3 method for gg
add_qr(
  tracker,
  qr_content,
  color = "black",
  color_bg = "white",
  height_tracker,
  position,
  justification,
  ...
)

# S3 method for tracker
add_qr(
  tracker,
  qr_content,
  color = "black",
  color_bg = "white",
  justification,
  ...
)

Arguments

tracker

ggtrack tracker object

qr_content

character content passed to qrencode. A time stamp is automatically added plus the current git commit where available.

color

character color of QR code

color_bg

character background color of QR code

height_tracker

numeric tracker height in cm.

position

data.frame generated by get get_positions

justification

numeric between 0 and 1 passed to rasterGrob.

...

additional options passed to rasterGrob

Value

tracker

See also

Other gg: caption(), logo()

Other tracker: caption(), logo()

Other gg: caption(), logo()

Other tracker: caption(), logo()

Examples

if (FALSE) { make_tracker() %>% add_qr('Report ID: 2c9075a5-4d7e-47a5-8616-55dd88af3dc5', justification = 1) }