ggpreview: Preview a file that would be created by ggsave()

View source: R/ggpreview.R

ggpreviewR Documentation

Preview a file that would be created by ggsave()

Description

Preview ggsave output in system image viewer. Credit for this one goes to TJ Mahr.

Usage

ggpreview(...)

Arguments

...

Arguments passed to 'ggplot2::ggsave()'

Value

An image in default system image viewer

References

https://gist.github.com/tjmahr/1dd36d78ecb3cff10baf01817a56e895

Examples

## Not run: 
ggplot(mtcars) +
  aes(x = wt, y = mpg) +
  geom_point()

ggpreview(width = 3, height = 3, units = "in")


## End(Not run)

emilelatour/laviz documentation built on Nov. 11, 2024, 9:42 p.m.