Skip to contents

Scopes showtext::showtext_auto() to this call only so that font rendering is enabled for the duration of the print and then restored.

Usage

print_st(p)

Arguments

p

A ggplot object to print.

Value

The input plot, invisibly.

Examples

if (requireNamespace("ggplot2", quietly = TRUE)) {
  p <- ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
    ggplot2::geom_point()
  print_st(p)
}