Description Usage Arguments Value Author(s) References
This function allows us to place a legend on a Google Earth display. The legend can be used to identify different categories by color or line type, for example,
The legend can be a previously created image or alternatively we can use R to create a legend and display that.
1 2 3 |
x,y |
the screen coordinates starting at the bottom left. |
legend |
the name of the file containing the legend or a vector of strings giving the labels for the legend. |
... |
additional arguments passed on the |
parent |
an XML internal node that is used as the parent for the
new ScreenOverlay node being created. This can also be the |
name |
a string that is displayed as the name for the ScreenOverlay node in the KML hierarchy. |
units |
a character vector giving the units for the x and y coordinates. The units can be "pixels", "fraction", "insetPixels". |
dims |
an integer vector of length 2 that is used if we create the legend in R. These give the dimensions to use when creating a PNG file for the legend giving the width and height in pixels. |
filename |
the name of the file to create if we are creating the legend image in R. |
bg |
the background to use for the call to |
An XMLInternalNode whose name is GroundOverlay.
Duncan Temple Lang
http://code.google.com/apis/kml/documentation/kmlreference.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.