if (FALSE) {
#### Load data sets
## Fastloc GPS data obtained from a green turtle
data(turtle)
## Bathymetry model developed by Beaman (2010)
data(bathymodel)
## A tidal plane for the example site
data(tidalplane)
## Tidal observations and predictions for the example site
data(tidedata)
## Maps for the example site
data(SandyStrait)
#### Remove temporal and/or spatial duplicates and biologically unrealistic fixes
turtle.dd <- ddfilter(dupfilter(turtle))
#### Apply depthfilter
turtle <- depthfilter(sdata = turtle.dd, bathymetry = bathymodel,
tide = tidedata, tidal.plane = tidalplane)
#### Plot data removed or retained by depthfilter
to_map(turtle.dd, bgmap = SandyStrait, point.bg = "red", point.size = 2, line.size = 0.5,
axes.lab.size = 0, title.size = 0, multiplot = FALSE)[[1]] +
geom_point(aes(x = lon, y = lat), data = turtle, size = 2, fill = "yellow", shape = 21)+
geom_point(aes(x = x, y = y), data = data.frame(x = c(152.68, 152.68), y = c(-25.3, -25.34)),
size = 3, fill = c("yellow", "red"), shape = 21) +
annotate("text", x = c(152.7, 152.7), y = c(-25.3, -25.34), label = c("Retained", "Removed"),
colour = "black", size = 4, hjust = 0)
}
Run the code above in your browser using DataLab