save_inews: Save plots (ggsave wrapper)

View source: R/theme_inews.R

save_inewsR Documentation

Save plots (ggsave wrapper)

Description

Save plots (ggsave wrapper)

Usage

save_inews(
  filename,
  plot = last_plot(),
  width = 15,
  height = 11,
  type = "basic",
  units = "cm",
  margin = "none"
)

Arguments

filename

The filename specified

plot

The plot to render, defaults to last plot

width

Specified width in cm, defaults to 15

height

Specified height in cm, defaults to 11

type

Adds presets for different graph types or different places on website

units

Specift units for width and height

margin

Add margins to plot


tomsaunders98/InewsTheme documentation built on June 16, 2022, 10:53 a.m.