plot_line: Plot line on map

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot_line.R

Description

Adds a line to an existing ggmap object.

Usage

1
2
3
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 ggmap::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

1
2
3
4
5
## Not run: \dontrun{
finish <- data.frame(lon = c(6.851810,6.851000), lat = c(52.241800,52.240300))
plot_line(finish)
}
## End(Not run)

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