The studio guide for mascot_size(). The
same page is read in the mascot studio.
Try it live.
The mascot studio shows this function with live controls and the generated code. In an R session with the optional packages bslib and knitr installed, run:
mascot::mascot_studio(fn = "mascot_size")
It opens on this function's guide; change a control and watch the mascot.
Size
The ruler marks 24, 72, 160 and 320 pixels; 160 is the default.
| Pixels | Reference |
|---|---|
| 24 | Minimum |
| 72 | Small example |
| 160 | Default |
| 320 | Large example |
Small screens. small_screen applies on
screens narrower than 576 pixels. Narrow your browser window to see the
mascot switch size. With small_screen = "auto", a floating
mascot shrinks to at most 96 pixels; an inline mascot keeps its
size.
mascot_size()
mascot_size(120, small_screen = 72)
mascot_size("30%", small_screen = NULL)Warnings, errors and common mistakes
mascot_size(10)
