Learn R Programming

fieldRS (version 0.2.3)

derivePlots: derivePlots

Description

Creates a fishnet from a spatial extent.

Usage

derivePlots(x, y)

Arguments

x

A spatial object.

y

A numeric element.

Value

An object of class SpatialPolygons.

Details

Creates a rectangular fishnet in a SpatialPolygons format based on the extent of x and the value of y which defines the spatial resolution.

See Also

rankPlots

Examples

Run this code
# NOT RUN {
{

require(raster)

# read field data
data(fieldData)

# derive plots
g <- derivePlots(fieldData, 1000)

# compare original data and output
plot(fieldData)
plot(g, border="red", add=TRUE)

}
# }

Run the code above in your browser using DataLab