Learn R Programming

ggfortify (version 0.4.17)

fortify.SpatialCommon: Convert sp instances to data.frame.

Description

Convert sp instances to data.frame.

Usage

# S3 method for SpatialCommon
fortify(model, data = NULL, rename = TRUE, ...)

Value

data.frame

Arguments

model

sp instances

data

original dataset, if needed

rename

logical flag indicating whether to rename coordinates to long and lat

...

other arguments passed to methods