Description Usage Arguments Value Note See Also
Export a lxy object to a format that can be animated in Google Earth
1 2 3 |
lxy |
A LoCoH-xy object |
file |
The name of the kml file to be created (relative to the working folder). The .kml extension will be added if needed. |
id |
The id(s) of the individual(s) to include in the plot |
skip |
The skip factor to use to reduce the number of points exported (i.e., every nth point exported where n= |
overwrite |
Whether to overwrite an existing kml file (T/F) |
compress |
Whether to copmress the kml file and create a kmz file (T/F) |
pt.scale |
The relative size of the placemark symbols |
col |
The point colors (one per id) |
show.path |
Whether to include the point path in the kml file (T/F) |
path.col |
The path colors (one per id), ignored if |
path.opaque |
The opacity of the path (0=transparent, 255=fully opaque), ignored if |
path.lwd |
The width of the path, ignored if |
The file name of the kml/kmz file
This function will export the locations in a LoCoH-xy object to a kml file that can be opened in Google Earth for animation.
The kml format is not optimized for large datasets, but this works reasonably well for moderate datasets (e.g., <1000).
To create animations of larger datasets, use a skip
value > 1 or see lxy.exp.mov
.
Adapated from plotKML package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.