GenerateAnimationKMLFile_Multitag | R Documentation |
This function creates a Keyhole Markup Language (KML) animation of transmitter detections at receivers that can be displayed in Google Earth. The animation shows the number of transmitters detected within the detection field of a receiver on a given day. Users can adjust the time slider to visualise individual time periods for display.
GenerateAnimationKMLFile_Multitag(sInputFile,sPointsFile,sOutputFile,
sLocation="RECEIVERID")
sInputFile |
a data frame containing VTrack archive data, this archive is created using the ReadInputData function |
sPointsFile |
a data frame containing the RECEIVERID or STATIONNAME, the coordinates and the detection RADIUS in meters. This should be in the format LOCATION, LATITUDE, LONGITUDE, RADIUS |
sOutputFile |
a string detailing the location and name of the output kml file to be created |
sLocation |
the location at which we wish to visualise our movement events (i.e. |
the output is a .kml that can be viewed as an animation in Google Earth
Ross Dwyer
ReadInputData
, GenerateAnimationKMLFile_Track
## Not run:
###GenerateAnimationKMLFile_Multitag example
# Note, users must download Google Earth in order to visualise the kml.
# Load crocodile datset into VTrack archive
data(crocs)
data(PointsDirect_crocs)
Vcrocs <- ReadInputData(infile=crocs,
iHoursToAdd=10,
dateformat = NULL,
sVemcoFormat='1.0')
# Set working directory (in this case a temporary directory)
setwd(tempdir())
# or alternatively to your Desktop on Mac OS
# setwd("~/Desktop")
# Run the function to generate the KML
GenerateAnimationKMLFile_Multitag(Vcrocs,
PointsDirect_crocs,
"Croc Multi.kml",
sLocation="RECEIVERID")
# Note, due to the decommissioning of the plotKML package, this function is no longer operational
# please use the GenerateAnimationKMLFile_Track function instead
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.