| ggpreview | R Documentation | 
Preview ggsave output in system image viewer. Credit for this one goes to TJ Mahr.
ggpreview(...)
... | 
 Arguments passed to 'ggplot2::ggsave()'  | 
An image in default system image viewer
https://gist.github.com/tjmahr/1dd36d78ecb3cff10baf01817a56e895
## Not run: 
ggplot(mtcars) +
  aes(x = wt, y = mpg) +
  geom_point()
ggpreview(width = 3, height = 3, units = "in")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.