plot_polygon {psyosphere} | R Documentation |
Adds a polygon to an existing ggmap
object.
plot_polygon(polygon, colour = "blue", plot = "", zoom = -1)
polygon |
list. A list with the column lon (numeric) and lat (numeric). |
colour |
character. Colour of the line. |
plot |
|
zoom |
numeric. Zoom factor of the map. See |
A ggmap
object.
Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.
plot_map
, plot_line
, plot_tracks
data("psyo_rounds_map") lon <- c(6.849975, 6.849627, 6.850001, 6.850350, 6.849975) lat <- c(52.241745, 52.241100, 52.241004, 52.241649, 52.241745) polygon <- data.frame(lon, lat) remove(lon, lat) plot <- psyosphere::plot_polygon(polygon, plot = psyo_rounds_map) # plot <- psyosphere::plot_polygon(polygon) plot