inst/doc/saving.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  message = FALSE,
  warning = FALSE
)

## ----standalone-svg, eval = FALSE---------------------------------------------
# ggsave(myplot, filename = "example-plot.svg",
#        width = 159, height = 100, units = "mm")

## ----standalong-png, eval = FALSE---------------------------------------------
# ggsave(myplot, filename = "example-plot.png",
#        width = 159, height = 100, units = "mm", dpi = "retina")

Try the sgplot package in your browser

Any scripts or data that you put into this service are public.

sgplot documentation built on June 8, 2025, 12:15 p.m.