# NOT RUN {
library(rgdal)
library(sp)
data(eberg_contours)
data(SAGA_pal)
names(eberg_contours)
# KML plot with elevations used as 'colour' argument:
kml.file = paste0(tempdir(), "/eberg_contours.kml")
kml(eberg_contours, file.name = kml.file,
colour_scale = SAGA_pal[[1]], colour = Z)
# }
Run the code above in your browser using DataLab