R: Autoplot 'raster::raster'

autoplot.RasterCommon {ggfortify} | R Documentation

## Autoplot `raster::raster`

### Description

Only plot the first layer of the given raster

### Usage

    ## S3 method for class 'RasterCommon'
    autoplot(object, raster.layer = NULL, p = NULL,
      alpha = NULL, xlim = c(NA, NA), ylim = c(NA, NA), log = "",
      main = NULL, xlab = "", ylab = "", asp = NULL, ...)

### Arguments

`object` | `raster::raster` instance
`raster.layer` | name of the layer to plot
`p` | `ggplot2::ggplot` instance
`alpha` | alpha
`xlim` | limits for x axis
`ylim` | limits for y axis
`log` | which variables to log transform ("x", "y", or "xy")
`main` | character vector or expression for plot title
`xlab` | character vector or expression for x axis label
`ylab` | character vector or expression for y axis label
`asp` | the y/x aspect ratio
`...` | other arguments passed to methods

### Value

ggplot

[Package ggfortify version 0.4.1 Index]