Running examples in 'SDLfilter-Ex.R' failed
The error most likely occurred in:

> ### Name: ddfilter
> ### Title: Filter locations using a data driven filter
> ### Aliases: ddfilter
> 
> ### ** Examples
> 
> #### Load data sets
> ## Fastloc GPS data obtained from a green turtle
> data(turtle)
> 
> ## A Map for the example site
> data(Australia)
> data(SandyStrait)
> 
> 
> #### Filter temporal and/or spatial duplicates
> turtle.dup <- dupfilter(turtle, step.time=5/60, step.dist=0.001)

dupfilter.exact removed 0 of 429 locations
dupfilter.qi removed 2 of 429 locations
dupfilter.time removed 2 of 427 locations
dupfilter.space removed 0 of 425 locations

Input data: 429 locations
Filtered data: 425 locations
dupfilter removed 4 locations (0.93% of original data)

>  
> 
> #### ddfilter
> ## Using the built-in function to estimate the threshold speeds
> V <- est.vmax(turtle.dup)

The maximum linear speed (Vmax) was estimated using 237 locations
Vmax: 3.4 km/h

> VLP <- est.maxvlp(turtle.dup)

The maximum one-way linear speed of a loop trip (Max.Vlp) was estimated using 11 Vlp from 6 loop trips
Max.Vlp: 0.4 km/h

  Warning: insufficient data to detect a loop trip from 

> turtle.dd <- ddfilter(turtle.dup, vmax=V, maxvlp=VLP)

ddfilter.speed removed 6 of 425 locations
ddfilter.loop removed 26 of 419 locations

Input data: 425 locations
Filtered data: 393 locations
ddfilter removed 32 locations (7.53% of original data)

> 
> ## Or using user specified threshold speeds
> turtle.dd <- ddfilter(turtle.dup, vmax=9.9, qi=4, ia=90, maxvlp=2.0)

ddfilter.speed removed 5 of 425 locations
ddfilter.loop removed 6 of 420 locations

Input data: 425 locations
Filtered data: 414 locations
ddfilter removed 11 locations (2.59% of original data)

> 
> 
> #### Plot data removed or retained by ddfilter
> ## Entire area
> p1<-plotMap(turtle.dup, bgmap=Australia, point.size = 2, line.size = 0.5, axes.lab.size = 0, 
+             sb.distance=200, multiplot = FALSE, point.bg = "red",
+             title.size=15, title="Entire area")[[1]] + 
+   geom_point(aes(x=lon, y=lat), data=turtle.dd, size=2, fill="yellow", shape=21)+
+   geom_point(aes(x=x, y=y), data=data.frame(x=c(154, 154), y=c(-22, -22.5)), 
+              size=3, fill=c("yellow", "red"), shape=21) + 
+   annotate("text", x=c(154.3, 154.3), y=c(-22, -22.5), label=c("Retained", "Removed"), 
+            colour="black", size=4, hjust = 0)
Error in ggsn::scalebar(x.min = xlim[1] + extra2, x.max = xlim[2] - extra2,  : 
  transform should be logical.
Calls: plotMap -> lapply -> FUN -> <Anonymous>
Execution halted