Learn R Programming

psyosphere (version 0.1.6)

export_kml: Export tracks as kml files

Description

Export tracks as kml files.

Usage

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.

See Also

codeexport_gpx

Examples

Run this code
# 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)
}
# }

Run the code above in your browser using DataLab