Add Logo to Tracker

logo(tracker, logo, height_tracker, position, justification, ...)

add_logo(tracker, ...)

# S3 method for gg
add_logo(tracker, logo, height_tracker, position, justification, ...)

# S3 method for tracker
add_logo(tracker, logo, justification, ...)

Arguments

tracker

ggtrack tracker object

logo

character file path or image url. Image extension can be any of:

  • jpeg

  • jpg

  • png

  • svg

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(), qr()

Other tracker: caption(), qr()

Other gg: caption(), qr()

Other tracker: caption(), qr()

Examples

if (FALSE) { make_tracker() %>% add_logo('https://www.r-project.org/logo/Rlogo.png', justification = 1) }