Learn R Programming

TrajDataMining (version 0.1.6)

owMeratniaBy: Ow Meratnia By

Description

Method that reduces trajectories spatiotemporally

Usage

owMeratniaBy(A1, dist, speed)

# S4 method for 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

Examples

Run this code
# 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')
# }

Run the code above in your browser using DataLab