# NOT RUN {
data(deer)
# track_xyt ---------------------------------------------------------------
# Default settings
rp1 <- random_points(deer)
# }
# NOT RUN {
plot(rp1)
# }
# NOT RUN {
trast <- raster(bbox(deer, buffer = 5000), res = 30)
rp3 <- random_points(deer, hr = "kde", trast = trast) # we need a larger template raster
# }
# NOT RUN {
plot(rp3)
# }
# NOT RUN {
# Only one random point for each observed point
rp <- random_points(deer, factor = 1)
# }
# NOT RUN {
plot(rp)
# }
# NOT RUN {
# Within a home range -----------------------------------------------------
hr <- hr_mcp(deer, level = 1)
# 100 random point within the home range
rp <- random_points(hr, n = 100)
# }
# NOT RUN {
plot(rp)
# }
# NOT RUN {
# 100 regular point within the home range
rp <- random_points(hr, n = 100, type = "regular")
# }
# NOT RUN {
plot(rp)
# }
# NOT RUN {
# 100 hexagonal point within the home range
rp <- random_points(hr, n = 100, type = "hexagonal")
# }
# NOT RUN {
plot(rp)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab