Journal of Statistical Software (Feb 2015)

plotKML: Scientific Visualization of Spatio-Temporal Data

  • Tomislav Hengl,
  • Pierre Roudier,
  • Dylan Beaudette,
  • Edzer Pebesma

DOI
https://doi.org/10.18637/jss.v063.i05
Journal volume & issue
Vol. 63, no. 1
pp. 1 – 25

Abstract

Read online

plotKML is an R package that provides methods for writing the most common R spatial classes into KML files. It builds up on the existing XML parsing functionality (XML package), and provides similar plotting functionality as the lattice package. Its main objective is to provide a simple interface to generate KML files with a small number of arguments, and allows users to visually explore spatio-temporal data available in R: points, polygons, gridded maps, trajectory-type data, vertical profiles, ground photographs, time series vector objects or raster images, along with the results of spatial analysis such as geostatistical mapping, spatial simulations of vector and gridded objects, optimized sampling designs, species distribution models and similar. A generic plotKML() function automatically determines the parsing order and visualizes data directly from R; lower level functions can be combined to allow for new user-created visualization templates. In comparison to other packages writing KML, plotKML seems to be more object oriented, it links more closely to the existing R classes for spatio-temporal data (sp, spacetime and raster packages) than the alternatives, and provides users with the possibility to create their own templates.