Description Usage Arguments Value References
Takes arguments similar to ggplot2::ggsave()
and creates a temporary
plot file (png) to be used as input to card_widget()
.
1 | gg_preview(gg, width = 350/72, height = 196/72, dpi = "retina")
|
gg |
ggplot2 plot object |
width, height |
width and height of the preview image. See References for guidelines |
dpi |
see |
path to the preview image tempfile
https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/player-card.html
https://sproutsocial.com/insights/social-media-image-sizes-guide/#twitter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.