groundOverlay: Display an image on Google Earth

Description Usage Arguments Value Author(s) References See Also

Description

This function displays the specified image at a location on Google Earth/Maps. We might use this for example to overlay a rasterized model fit or a plot. (Alternatively, we can use the KML device to create R plots using KML elements.)

This is different from displaying an image on the screen, e.g. for a legend. This places the image at the given longitude, latitude rather than relative to screen coordinates.

Usage

1
groundOverlay(icon, long, lat, width, height, rot = 0, ..., name = character(), parent = NULL)

Arguments

icon

the name of the file containing the image to be overlayed

long,lat

the longitude and latitude at which to locate the image

width,height

the width and height of the image in units of longitude and latitude.

rot

how much to rotate the image. This is an angle between 180 and -180.

...

additional parameters. Currently ignored.

name

the name to use for the GroundOverlay KML element. This will be displayed in the Google Earth places list to identify the element.

parent

the parent XML node for the new GroundOverlay node. THis can be NULL in which case the caller must parent this appropriately after the call returns the node.

Value

An XML internal node giving a GroundOverlay element.

Author(s)

Duncan Temple Lang

References

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

See Also

kmlLegend


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