Learn R Programming

psyosphere (version 0.1.6)

plot_line: 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 ggmap::get_googlemap.

Value

A ggmap object.

See Also

plot_map, plot_tracks, plot_polygon

Examples

Run this code
# NOT RUN {
\dontrun{
finish <- data.frame(lon = c(6.851810,6.851000), lat = c(52.241800,52.240300))
plot_line(finish)
}
# }

Run the code above in your browser using DataLab