kmlSegments: Draw circles and line segments on Google Earth in KML

Description Usage Arguments Author(s) References See Also

Description

These functions allow us to create display elements in KML for showing circles or collections of lines.

These are works in progress and the details (e.g. styles and colors) will be filled in as we find time.

Usage

1
2
3
4
kmlSegments(x0, y0, x1, y1, col = character(), lty = integer(),
            lwd = integer(), ..., doc = NULL, parent = NULL)
kmlCircle(x, y, r, parent = NULL, numLines = 60, col = NA,
           color = character(), scale = 1L, ..., styleId = NA)

Arguments

x,y,x0,y0,x1,y1

vectors of the coordinates for the end points of the line segments

r

the radius of the circle

col

currently ignored

lty

currently ignored

lwd

currently ignored

...

additional arguments that are currently ignored.

doc

currently ignored

parent

either NULL or an XMLInternalNode that is to be used as the parent XML node for the new KML content that is created.

numLines

an integer controlling how well the circle is rendered. Circles are drawn in KML as a sequence of connected line segments that appear as a circle. The number of lines controls the resolution of the circle's approximation with a large number of lines improving the approximation and smoothness.

scale

the scale for the lines being used to render the circle, used as an attribute of the KML style.

color

a color specified as a KML string for the KML style

styleId

a string giving the name of the style to se for the circle.

Author(s)

Duncan Temple Lang

References

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

See Also

kml createKMLDoc


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