# NOT RUN {
# }
# NOT RUN {
###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,
dateformat = NULL,
sVemcoFormat='1.0')
# Load Wenlock points file
data(PointsDirect_crocs)
# Set working directory (in this case a temporary directory)
setwd(tempdir())
# or alternatively to your Desktop on Mac OS
# setwd("~/Desktop")
(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, # VTrack archive file
TransmitterList[1], # Transmitter id
PointsDirect_crocs, # points file
"Track1.kml", # file name
"cc69deb3", # colour of the track
sLocation="RECEIVERID")
# This file can be found within the tempdir() directory on your computer.
# Double-click on the .kml file to open in Google Earth
# }
Run the code above in your browser using DataLab