Questions tagged [adehabitathr]

R package for home range estimation

adehabitatHR is a collection of tools for the estimation of animals home range.

External Links:

CRAN repository

59 questions
0
votes
1 answer

How do I calculate the area of a Brownian bridge movement model?

In the adehabitatHR package there is some sample code to calculate Brownian bridge movement model for a wild boar using the kernelbb function. I would like to calculate the area of the object that results. I'd also like to know the units of the…
adkane
  • 1,429
  • 14
  • 29
0
votes
1 answer

Vector addition (subtraction) in R for movement paths

I have a data frame which includes the movement path of an animal in lat/lon coordinates. From this I have derived speed and bearing over ground. The data frame also contains the wind vector relative to the animal's position i.e. speed and bearing…
Jojo
  • 4,951
  • 7
  • 23
  • 27
0
votes
2 answers

export khrud object from kernelUD to raster

In R, how can I export a khrud object from function kernelUD in package adehabitat to a raster file (geoTiff)? I tried following this thread (R: how to create raster layer from an estUDm object) using the code…
ecologist1234
  • 225
  • 1
  • 8
0
votes
1 answer

Subsetting for a minimum number of locations for MCP in R, dropping individual names

I have a very similar question to that posted here: Subsetting for a minimum number of locations for MCP in R And here Subset data frame based on number of rows per group Where I'm trying to subset a dataset dropping all individuals with less than 5…
Francesca
  • 47
  • 5
0
votes
1 answer

How to create a single data set that contains two data frames using an excel file

I need to create a single data set from an excel file that looks likes the following picture 1. When I export the file to mimic it in excel, the format does not work correctly. This is what the file looks like when it is exported as an excel 2.…
0
votes
1 answer

Create boundary to home range estimation (KUD)

I'm using adehabitatHR to estimate home range for penguins. Naturally, they can't swim on land, and I have been trying to add a boundary around the coastline to prevent the KUD from adding more area than is feasible. The area I'm trying to create…
Zairi
  • 31
  • 3
0
votes
0 answers

How to convert my lat and longs to UTM within my dataframe

I'm a bit stuck at the moment, i have been able to create a spatial points data frame and out of this i made an object of the class Ltraj. This i will need to do further analysis. But my x and y coordinates aren't in UTM which might give problems if…
SamR
  • 5
  • 3
0
votes
0 answers

R language, problems with SpatialPixelsDataFrame

The following two scripts will generate a "SpatialPixelDataFrame" object: # FIRST library(rgdal) elev.grid <- readGDAL("whatever.asc") elev.grid <- as(elev.grid, "SpatialPixelsDataFrame") #…
perep1972
  • 147
  • 1
  • 9
0
votes
0 answers

Incorrect Plot when plotting SpatialPointsDataFrame

I am new to R and am having trouble plotting a SpatialPointsDataFrame, with eventual hopes of creating minimum convex polygons. I've been trying for a few days but can't find anything to fix this problem. I load my excel data as TXT. File has 3…
0
votes
0 answers

R Subset Data from Spatialdataframe

I am trying to analyze spatial data in R. I ran into problems trying to subset my data for the analysis. First of all my raw data had this format. The Dataframe is called "locs": AnID X Y 1 Ind7 408046.3 5508986 2 Ind7 407445.4…
h4g0
  • 1
  • 3
0
votes
1 answer

Having trouble calculating Home Range area

I am having a lot of trouble in R calculating the area of home range of an animal. I thought once I produced a home range (if I've done it correctly) calculating the area would be easy, but no I've pasted some of the code I've been trying. I…
Colin
  • 161
  • 1
  • 1
  • 7
-1
votes
1 answer

Plot individuals home-range with Adehabitat

I am trying to put the name from the individuals of my research in a polygons home-range plot, but after many attempts I still can not achieve it. Here and example of my data: X and Y are coordinates and id are individuals X Y id 29 …
-2
votes
1 answer

adehabitatHR locoh.k orphan holes

I am trying to optimise the k parameter using AdehabitatHR LoCoH.k.area and it stops running when the topology is such that it can't produce a polygon. Message is: rgeos_PolyCreateComment: orphaned hole, cannot find containing polygon for hole…
Janine
  • 11
  • 1
-2
votes
2 answers

Converting my dates into a POSIXct class

I'm currently working my way through the adehabitatLT package. I've put my date_time column into characters and named it da: da<-as.character(dat$date_time) head(da) [1] "7/08/2015 0:22" "7/08/2015 0:52" "7/08/2015 1:22" "7/08/2015 1:52" "7/08/2015…
SamR
  • 5
  • 3
1 2 3
4