kmlPolygon: Display a polygon in KML

Description Usage Arguments Value Author(s) References

Description

This function creates a display for a polygon in KML given the

Usage

1
2
3
4
5
kmlPolygon(long, lat, col = character(), fill = FALSE, lwd = 1,
            outline = 1,
            style = list(PolyStyle = list(color = col, fill = fill,
                                          width = lwd, outline = outline)),
            parent = NULL, localStyle = missing(style) || !is.character(style))

Arguments

long,lat

numeric vectors giving the longitude and latitude of the points to connect in the

col

the color for the

fill

a logical value indicating whether to fill the interior of the polygon (with col as the color?)

lwd

the line width to use for the outline of the polygon

outline

a logical value that provides the value for the outline element in the PolyStyle style object in KML

style

a description of the KML style to use. This can be list in R that is used to create a new Style element in KML, or a character string giving the name of a top-level Style.

parent

an XML internal node used as the parent node of the new Placemark XML node used to display this polygon.

localStyle

a logical value that controls whether to create the style locally or as a top-level style within the KML document.

Value

An XMLInternalNode giving the Placemark that contains the polygon description.

Author(s)

Duncan Temple Lang

References

http://code.google.com/apis/kml/documentation/kmlreference.html


duncantl/RKML documentation built on May 15, 2019, 5:31 p.m.