Learn R Programming

TrajDataMining (version 0.1.6)

owMeratniaByCollection: Ow Meratnial By Collection

Description

Method that reduces a set of trajectories spatiotemporally

Usage

owMeratniaByCollection(A1, dist, speed)

# S4 method for TracksCollection,numeric,numeric owMeratniaByCollection(A1, dist, speed)

Arguments

A1

Represents a collection of trajectories followed by different persons, animals or objects

dist

Distance time series

speed

Speed of object

Value

Trajectory spatiotemporally reduced

Examples

Run this code
# NOT RUN {
library(magrittr)

library(sp)

library(ggplot2)
ow <-owMeratniaByCollection(tracksCollection,13804.84 ,0.03182201) %>% coordinates()

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

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

Run the code above in your browser using DataLab