###GenerateAnimationKMLFile_Track example
# Note, users must download Google Earth in order to visualise the kml
# Load crocodile datset into VTrack archive
data(crocs)
Vcrocs <- ReadInputData(infile=crocs,
iHoursToAdd=10,
fAATAMS=FALSE,
fVemcoDualSensor=FALSE,
dateformat = NULL,
sVemcoFormat='1.0')
# Load Wenlock points file and generate circuitous distance matrix
data(PointsDirect_crocs)
# Set working directory (in this case a temporary directory)
setwd(tempdir())
(TransmitterList <- ExtractUniqueValues(Vcrocs,2)) # Extract the transmitter names
TransmitterList[1] # Let's create the track for this tag
# Run the function to generate the KML for a single transmitter
GenerateAnimationKMLFile_Track(Vcrocs,
TransmitterList[1],
XYVR2.Pointsfile,
"Track1.kml",
"cc69deb3")
# This file can be found within the tempdir() directory on your computer.
# Double-click on the .kml file to open in Google EarthRun the code above in your browser using DataLab