export_kml: Export tracks as kml files

Description Usage Arguments Details Author(s) See Also Examples

View source: R/export_kml.R

Description

Export tracks as kml files.

Usage

1
export_kml(tracks, t_id = "id")

Arguments

tracks

psyo. Data frame with tracks. The columns track_name, file_name, track_color have to be defined.

t_id

character or numeric. Column name in tracks that identifies the separate tracks.

Details

track_name is the name of the track.

file_name is the file name of the kml file.

color is the color of the track. For instance "ffaa00bb" sets the transparency to bb in exdecimal or 73%, sets blue to 00, sets green to aa, and sets red to ff. See also aes_colour_fill_alpha.

Author(s)

Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.

See Also

codeexport_gpx

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
\dontrun{

# Get tracks

data(psyo)

# Add columns

dir <- tempdir()
psyo[,"track_color"] <- "bb00aaff"
psyo[,"track_name"] <- psyo[,"id"]
psyo[,"file_name"] <- file.path(dir, paste0(psyo[,"track_name"], ".kml"))

# Export files

export_kml(psyo)
}

## End(Not run)

psyosphere documentation built on July 2, 2020, 12:08 a.m.