Create a ggplot2 plot object with a third dimension thanks to ggrgl. The x and y coordinates are the longitude and latitude, the z dimension is the elevation along the route. The chart title includes the total distance, elevation disparity, plus the date and start/end times.

plot_gpx3d(route_df, route_only = FALSE)

Arguments

route_df

A data.frame, optionally sf-class. Output from must be in the format output via extract_gpx3d.

route_only

Logical. Retain all chart elements if FALSE (default) or retain only the route path if FALSE.

Value

An interactive 3D rendering of the route path in a devoutrgldevice.

Examples

if (FALSE) {
x <- extract_gpx3d(gfx_segment)
plot_gpx3d(y)
}