lxy.exp.kml: Export a lxy object to kml (Google Earth)

Description Usage Arguments Value Note See Also

Description

Export a lxy object to a format that can be animated in Google Earth

Usage

1
2
3
lxy.exp.kml(lxy, file, id = NULL, skip = 1, overwrite = TRUE,
  compress = TRUE, pt.scale = 0.5, col = NULL, show.path = TRUE,
  path.col = NULL, path.opaque = 80, path.lwd = 3)

Arguments

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=skip)

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 show.path=FALSE

path.opaque

The opacity of the path (0=transparent, 255=fully opaque), ignored if show.path=FALSE

path.lwd

The width of the path, ignored if show.path=FALSE

Value

The file name of the kml/kmz file

Note

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.

See Also

lxy.exp.mov


tlocoh documentation built on May 2, 2019, 5:27 p.m.