data("ducknest")
unif <- ds(ducknest, key="unif")
hr <- ds(ducknest, key="hr")
hn <- ds(ducknest, key="hn")
hnadj <- ds(ducknest, key="hn", adjustment = "cos", nadj = 1)
hradj <- ds(ducknest, key="hr", adjustment = "cos", nadj = 1)
unif.detfct <- detfct(ducknest$distance, unif$ddf$ds$aux$ddfobj, width=2.4)
hr.detfct <- detfct(ducknest$distance, hr$ddf$ds$aux$ddfobj, width=2.4)
hradj.detfct <- detfct(ducknest$distance, hradj$ddf$ds$aux$ddfobj, width=2.4)
hn.detfct <- detfct(ducknest$distance, hn$ddf$ds$aux$ddfobj, width=2.4)
hnadj.detfct <- detfct(ducknest$distance, hnadj$ddf$ds$aux$ddfobj, width=2.4)
plot(ducknest$distance, unif.detfct, ylim=c(0.65,1), col="blue", pch=20,
xlab="Distance", ylab="Detection probability")
points(ducknest$distance, hr.detfct, col="green", pch=20)
points(ducknest$distance, hn.detfct, col="salmon", pch=20)
points(ducknest$distance, hradj.detfct, col="black", pch=20)
points(ducknest$distance, hnadj.detfct, col="red", pch=20)
legend("topright", legend=c("unif", "hr", "hn", "hradj", "hnadj"),
col = c("blue", "green", "salmon", "black", "red"), pch=20, cex=1.2)