R: Convert 'raster' to 'data.frame'

fortify.RasterCommon {ggfortify} | R Documentation

## Convert `raster` to `data.frame`

### Description

Convert `raster` to `data.frame`

### Usage

    ## S3 method for class 'RasterCommon'
    fortify(model, data = NULL, maxpixels = 1e+05,
      rename = TRUE, ...)

### Arguments

`model` | `raster` instances
`data` | original dataset, if needed
`maxpixels` | number of pixels for resampling
`rename` | logical flag indicating whether to rename coordinates to long and lat
`...` | other arguments passed to methods

### Value

data.frame

[Package ggfortify version 0.4.3 Index]