View source: R/chart_helpers.R
check_chart_aspect_ratio | R Documentation |
This function will open your plot in a new window with the aspect ratio of the chart type selected
check_chart_aspect_ratio(object = ggplot2::last_plot(), type = "normal")
object |
The ggplot2 graph object to be saved. Defaults to
|
type |
Sets height and width to Grattan defaults. The following chart types are available:
Set type = "all" to save your chart in all available sizes or use 'grattan_save_all()'. |
## Not run:
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point()
check_chart_aspect_ratio()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.