Learn R Programming

vegtable (version 0.1.7)

vegtable2kml: Mapping of plot observations

Description

This function is producing and displaying KML files.

Georeferenced plots can be quickly displayed in Google Earth using this function.

Usage

vegtable2kml(obj, ...)

Value

A KML file, which will be automatically opened in Google Earth.

Arguments

obj

Input object containing coordinate values.

...

Further arguments passed among methods.

file

Character value with the name of output file (including file extension).

coords

Either a character vector or a formula indicating the names of coordinate values.

srs

Spatial reference system as proj4string.

Author

Miguel Alvarez kamapu78@gmail.com

See Also

vegtable-deprecated

Examples

Run this code
## Plots containing Podocarpus observations
Kenya_veg@species <- subset(Kenya_veg@species, grepl("Podocarpus", TaxonName),
	   slot="names")
	
Kenya_veg <- subset(Kenya_veg, TaxonUsageID %in%
	   Kenya_veg@species@taxonNames$TaxonUsageID, slot="samples")

if (FALSE) vegtable2kml(Kenya_veg, "Podocarpus.kml")

Run the code above in your browser using DataLab