export_kml {psyosphere}R Documentation

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.

Author(s)

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

See Also

codeexport_gpx

Examples

## Not run: 

# Get tracks

data(psyo)

# Add columns

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

# Export files

export_kml(psyo)

## End(Not run)

[Package psyosphere version 0.1 Index]