qr: Add QR Code to Tracker

Description Usage Arguments Value See Also Examples

View source: R/qr.R

Description

Add QR Code to Tracker

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
qr(
  tracker,
  qr_content,
  color = "black",
  color_bg = "white",
  height_tracker,
  position,
  justification,
  ...
)

add_qr(tracker, ...)

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

## S3 method for class '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

1
2
3
4
## Not run: 
  make_tracker() %>% add_qr('Report ID: 2c9075a5-4d7e-47a5-8616-55dd88af3dc5', justification = 1)

## End(Not run)

mrjoh3/ggtrack documentation built on Dec. 21, 2021, 10:08 p.m.