map_segm: 'plot_segm' plot segmented movement data on a map.

View source: R/function_map_plot.R

map_segmR Documentation

plot_segm plot segmented movement data on a map.

Description

plot_segm plot segmented movement data on a map.

Usage

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"),
  ...
)

Arguments

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

Value

a ggplot object

Examples

## 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)


rpatin/segclust2d documentation built on Sept. 10, 2022, 8:02 a.m.