powered by
Provides a very basic interface to leaflet and lets the user inspect relocations on an interactive map.
leaflet
inspect(x, ...)# S3 method for track_xy inspect(x, popup = NULL, cluster = TRUE, ...)
# S3 method for track_xy inspect(x, popup = NULL, cluster = TRUE, ...)
An interactive leaflet map.
[track_xy, track_xyt] A track created with make_track.
[track_xy, track_xyt]
make_track
Further arguments, none implemented.
[character(nrow(x))] Optional labels for popups.
[character(nrow(x))]
[logical(1)] If TRUE points are clustered at lower zoom levels.
[logical(1)]
TRUE
leaflet::leaflet()
data(sh) x <- track(x = sh$x, y = sh$y, crs = 31467) # \donttest{ inspect(x) inspect(x, cluster = FALSE) inspect(x, popup = 1:nrow(x), cluster = FALSE) # }
Run the code above in your browser using DataLab