xy2kml | R Documentation |
generate a kml file from dataframe of coordinates
xy2kml(sampleXY)
sampleXY |
- a data frame with three columns: ID, X and Y (in decimal degrees) |
a .kml file of that you can view in google earth
Chris Brauer
## set directory for results to be written
setwd("path/to/working/directory")
# load example coordinate file
data(DelphinusXY)
# run analysis
xy2kml(DelphinusXY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.