logo: Add Logo to Tracker

Description Usage Arguments Value See Also Examples

View source: R/logo.R

Description

Add Logo to Tracker

Usage

1
2
3
4
5
6
7
8
9
(tracker, , height_tracker, position, justification, ...)

(tracker, ...)

## S3 method for class 'gg'
(tracker, , height_tracker, position, justification, ...)

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

1
2
3
4
## Not run: 
  make_tracker() %>% ('https://www.r-project.org/logo/Rlogo.png', justification = 1)

## End(Not run)

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