Learn R Programming

ggfortify (version 0.4.17)

fortify.RasterCommon: Convert raster to data.frame

Description

Convert raster to data.frame

Usage

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

Value

data.frame

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