ggsave {ggplot} | R Documentation

## ggsave

### Description

Save a ggplot with sensible defaults

### Usage

    ggsave(plot = .PLOT, filename=default_name(plot), device=default_device(filename), scale=1, width=par("din")[1], height=par("din")[2], grid="normal", dpi=96, ...)

### Arguments

`plot` | plot to save
`filename` | file name/path of plot
`device` | device to use, automatically extract from file name extension
`scale` | scaling factor
`width` | width (in inches)
`height` | height (in inches)
`grid` | grid to use, normal for white on pale grey, print for pale grey on white
`dpi` | dpi to use for raster graphics
`...` | other arguments passed to device function

### Details

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

[Package ggplot version 0.4.2 Index]