owMeratniaBy: Ow Meratnia By

Description Usage Arguments Value Author(s) Examples

Description

Method that reduces trajectories spatiotemporally

Usage

1
2
3
4
owMeratniaBy(A1, dist, speed)

## S4 method for signature 'Track,numeric,numeric'
owMeratniaBy(A1, dist, speed)

Arguments

A1

Represents a single trajectory followed by a person, animal or object.

dist

Distance time series

speed

Speed of track

Value

Reduces trajectories spatiotemporally

Author(s)

Diego Monteiro

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(ggplot2)

speed <- max (A1@connections$speed)

distance <- max (A1@connections$distance)

ow <- owMeratniaBy(A1,distance,speed)

df <- data.frame(x=ow@sp@coords[,1],y=ow@sp@coords[,2])

ggplot(df,aes(x=df$x,y=df$y))+geom_path(aes(group = 1), arrow = arrow(),color='blue')

## End(Not run)

TrajDataMining documentation built on May 2, 2019, 11:07 a.m.