build.kml.folders: kml building blocks

Description Usage Arguments Note Examples

Description

builds kml folders using kml building blocks

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
hexBinary(col = "#A40000")

kml.document(title = "kml_file", body = "#---#")

kml.folder(name = "folder_1", body = "#---#")

kml.placemark.line(color = "#A40000", width = 3, name = "line1",
  coords = cbind(c(24.71, 24.71, 24.73), c(45.59, 45.61, 45.6)))

kml.placemark.points(color = "#4E9A06", scale = 1, name = "pt1",
  icon = "http://maps.google.com/mapfiles/kml/pal2/icon18.png",
  coords = c(24.71, 45.59), datetime = Sys.time())

build.kml.folders(dat, width = 3, scale = 1,
  colfun = col_factor("Paired", NULL))

Arguments

width

line width

scale

symbol scale

dat

a data.table containing id, datetime_, lat, lon

colfun

a function , default to scales::col_factor()

Note

for now dat is hardwired but this will change (dat should be a proper spacetime object or it should take id, datetime_, lat, lon as arguments)

Examples

1
x = randomTracks() %>% build.kml.folders

mpio-be/sdbvis documentation built on June 11, 2019, 4:57 p.m.