Description Usage Arguments Author(s)
This function can be used to build a kml file with geographical points.
1 | geo.pts2kml(points, filename)
|
points |
the points data.frame. |
filename |
the kml filename. |
Juan Du du@ibcas.ac.cn
county <- c("yijinhuoluo", "zhungeer", "dalate", "hangjin", "wushen", "etuokeqian", "etuoke") lon <- c(109.73379, 110.87967, 110.02905, 108.72321, 108.84956, 107.43605, 107.98152) lat <- c(39.566647, 39.647034, 40.396904, 39.839581, 38.598644, 38.22477, 39.09407)
example.pt <- data.frame(county, lon, lat)
geo.pts2kml(example.pt, "county position")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.