gg_preview: Generate a Twitter Player card preview image from a ggplot2...

Description Usage Arguments Value References

View source: R/gg-preview.R

Description

Takes arguments similar to ggplot2::ggsave() and creates a temporary plot file (png) to be used as input to card_widget().

Usage

1
gg_preview(gg, width = 350/72, height = 196/72, dpi = "retina")

Arguments

gg

ggplot2 plot object

width, height

width and height of the preview image. See References for guidelines

dpi

see ggplot2::ggsave()

Value

path to the preview image tempfile

References


hrbrmstr/widgetcard documentation built on Aug. 14, 2019, 4:51 p.m.