View source: R/function_map_plot.R
map_segm | R Documentation |
plot_segm
plot segmented movement data on a map.plot_segm
plot segmented movement data on a map.
map_segm( data, output, interactive = FALSE, html = FALSE, scale = 1, UTMstring = "+proj=longlat +datum=WGS84 +no_defs", width = 400, height = 400, order = NULL, pointsize = 1, linesize = 0.5, coord.names = c("x", "y"), ... )
data |
the data.frame with the different variable |
output |
outputs of the segmentation or segclust algorithm for one number of segment |
interactive |
should graph be interactive with leaflet ? |
html |
should the graph be incorporated in a markdown file through htmltools::tagList() |
scale |
for dividing coordinates to have compatibility with leaflet |
UTMstring |
projection of the coordinates |
width |
width |
height |
height |
order |
should cluster be ordered |
pointsize |
size of points |
linesize |
size of lines |
coord.names |
names of coordinates |
... |
additional arguments |
a ggplot object
## Not run: #res.seg is a result of the segmentation-only algorithm : nseg = 10 outputs = res.seg$outputs[[paste(nseg, "segments")]] map <- map_segm(data=res.seg$data,output=outputs) #res.segclust is a result of the segmentation-clusturing algorithm : nseg = 10; ncluster = 3 outputs = res.segclust$outputs[[paste(ncluster,"class -",nseg, "segments")]] map <- map_segm(data=res.seg$data,output=outputs) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.