Learn R Programming

plotKML (version 0.2-2)

plotKML-methods: Methods for plotting results of spatial analysis in Google Earth

Description

The method writes inputs and outputs of spatial analysis (a list of point, gridded and polygon data usually) to KML and opens the KML file in Google Earth (or any other default package used to view KML/KMZ files).

Usage

plotKML(obj, ...)

Arguments

obj
input object of specific class; usually a composite object containing both inputs and outputs of analysis
...
(optional) arguments passed to the lower level functions

Details

This is a generic function to plot various R objects that contain both inputs and outputs of spatial analysis. The resulting plots (referred to as `views') are usually cartographically complete as they contain legends, and data and model descriptions. In principle, plotKML works only with complex objects such as "SpatialPredictions", "SpatialVectorsSimulations", "RasterBrickSimulations", "RasterBrickTimeSeries", "SpatialMaxEntOutput" and similar. To further customize visualizations consider combining the lower level functions kml_open, kml_close, kml_compress, kml_screen into your own wrapper function.

See Also

SpatialPredictions-class, SpatialVectorsSimulations-class, RasterBrickSimulations-class, RasterBrickTimeSeries-class, SpatialMaxEntOutput-class, SpatialSamplingPattern-class