plot_line {psyosphere}R Documentation

Plot line on map

Description

Adds a line to an existing ggmap object.

Usage

plot_line(
  line, colour = "", size = 1, plot = "", zoom = -1
)

Arguments

line

list. A list with the column lon (numeric) and lat (numeric).

colour

character. Colour of the line.

size

numeric. Thickness of the line.

plot

ggmap. An existing map / plot where the tracks are added. If no plot is provided a Google map will be downloaded.

zoom

numeric. Zoom factor of the map. See get_googlemap.

Value

A ggmap object.

Author(s)

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

See Also

plot_map, plot_tracks, plot_polygon

Examples

data(psyo_rounds_map)
finish <- data.frame(lon = c(6.851810,6.851000), lat = c(52.241800,52.240300))
psyosphere::plot_line(finish, plot = psyo_rounds_map)
# psyosphere::plot_line(finish)

[Package psyosphere version 0.1 Index]