poly2sp: Convert a polygon dataframe in the format used by...

View source: R/poly2spatialpoly.R

poly2spR Documentation

Convert a polygon dataframe in the format used by ggplot2::geom_polygon to a spatialPolygonDataFrame

Description

Assumes that the dataframe only contains rombuses.

Usage

poly2sp(polydf)

Arguments

polydf

A polygon in the format required by geom_polygon: a data.frame with values, x and y positions and id labels

Value

A spatialPolygonsDataFrame object, as used in the package 'sp'


BarbaraRobson/ereefs documentation built on April 23, 2023, 5:47 a.m.