Learn R Programming

adehabitat (version 1.1-1)

as.area: Objects of Class "area"

Description

Objects of class area are used to store the information on the shape of vectorised objects. An object of class area is a data frame with three variables. The first variable is a factor defining the polygons. The second and third variables are the xy coordinates of the polygon vertices in the order where they are found. This kind of objects are current in the package ade4, though this package does not define area as a special class.

Usage

as.area(x)

Arguments

x
a data frame with three columns

Value

  • Returns an object of class area

See Also

area.plot for other operations on objects of class area, area2dxf for exportation of the objects area toward a GIS.

Examples

Run this code
data(elec88)
ar <- as.area(elec88$area)
area.plot(ar)

Run the code above in your browser using DataLab