G'day everyone,

I am working with GPS data recorded from foraging penguins. I recently
discovered the rhr package, which seems like an amazing tool but
unfortunately I cannot get it to work. 

I have a dataframe that contains one column for longitude and one for
latitude, as well as an ID column which gives information about the trip
number (I want to calculate home range characteristics trip by trip and then
make a comparison) and a POSIXct timestamp in the format d/%m/%Y %H:%M:%S as
you can see in the attached file. 

The rhrGUI() command allowed me to open the GUI in my web browser (Google
Chrome) after loading the package rhr. I uploaded the file with "comma",
"data comes with header", "0", and "point" as options for the field
separator, header, skip lines and decimal separator options. In order to map
the fields, I used "id", "Longitude", "Latitude" and "timestamp", and "NA"
for he ID, Longitude, Latitude, Date and Time fields respectively. For the
date, I used the "ymd_hms" option. I did not apply any restriction. I then
selected "lon/lat" (but I also tried meters and got the same output with
errors), "4326" (for WGS84), "28354" (which corresponds to the projected
coordinate system of the zone I am working with, ie GDA Zone 54), "add
random noise" for the unit, input spatial reference system, output reference
system and duplicates fields separately. On top of that, I ticked the
verbose mode, write log and use Google maps options. I ticked all analytical
steps and ran the analysis but I am getting error messages throughout the
output and no plot at all get produced. 
Here are the error messages I am getting:  
-   Site fidelity: Error in switch(ct, ggplot =
ggplotGrob(grobs[[ii.table]]), trellis = latticeGrob(grobs[[ii.table]]), :
EXPR must be a length 1 vector
-   Time to statistical independence: Error in valid.viewport(x, y, width,
height, just, gp, clip, xscale, yscale, : invalid 'yscale' in viewport
-   Minimum Convex Polygon/Kernel Density Estimation: Error in
rhrConvertUnit(tt$area, config$config$inUnit, config$config$outUnit): inUnit
is not valid. It should be one of: ido,m,km,ft,yd,mi
-   Local Convex Hull: Error: is.character(projargs) is not TRUE
-   Asymptote and Core Area: Error in gzfile(file, "rb"): cannot open the
connection and Not enough relocations
I am not sure what these errors mean and how to fix them. 
I should probably mention that I installed the package rhr from the zip file
found on r-forge a few days ago. 
I have also attached the log and params files created after the analysis was
ran. 
If someone could help me understand what seems to be the problem and point
me in the right direction to fix it, it would be much appreciated! 
Cheers,
Elodie 
 

 

Elodie Camprasse

6/187 Auburn Road

Hawthorn, VIC 3122

Australia 

 

Email:  <mailto:elodie.campra...@gmail.com> elodie.campra...@gmail.com

Website:  <http://hors-des-sentiers-battus.e-monsite.com/>
http://hors-des-sentiers-battus.e-monsite.com/

Mobile:  <tel:%28%2B61%29%20049%20794%200793> (+61) 049 794 0793 

 

Attachment: reproducible_example_GPS_LB_LP0009.csv
Description: MS-Excel spreadsheet

Attachment: params.pdf
Description: Adobe PDF document


============================================================
* Reading data
============================================================


* [2014-08-09 15:18:52] : trying to read data

* [2014-08-09 15:19:07] : parsing date and time

* [2014-08-09 15:19:07] : Subsetting

* [2014-08-09 15:21:10] : parsing date and time

* [2014-08-09 15:21:10] : Subsetting



============================================================
* Starting with rhr analysis
============================================================


* [2014-08-09 15:28:34] : Preparing analysis

* [2014-08-09 15:28:34] : splitting data

* [2014-08-09 15:28:34] : validate input

* [2014-08-09 15:28:34] : create out dirs

* [2014-08-09 15:28:34] : preparing results

* [2014-08-09 15:28:34] : setting up animal data

* [2014-08-09 15:28:34] : preparing animal: LB_LP0009_1st_trip

* [2014-08-09 15:28:34] : projecting data

* [2014-08-09 15:28:34] : reprojecting data from 4326 to 28354

* [2014-08-09 15:28:34] : preparing animal: LB_LP0009_2nd_trip

* [2014-08-09 15:28:34] : projecting data

* [2014-08-09 15:28:34] : reprojecting data from 4326 to 28354


------------------------------------------------------------
* Site fidelity
------------------------------------------------------------
* [2014-08-09 15:28:34] : Init site fidility

* [2014-08-09 15:28:34] : starting with site fidelity for LB_LP0009_1st_trip

* [2014-08-09 15:28:34] : starting with site fidelity for LB_LP0009_2nd_trip

* [2014-08-09 15:28:34] : generating html output for site fidelity


------------------------------------------------------------
* Time to statistical independence
------------------------------------------------------------
* [2014-08-09 15:28:34] : Init ttsi

* [2014-08-09 15:28:34] : starting with ttsi for LB_LP0009_1st_trip

* [2014-08-09 15:28:34] : starting with ttsi for LB_LP0009_2nd_trip


------------------------------------------------------------
* Minimum convex polygon
------------------------------------------------------------
* [2014-08-09 15:28:34] : Init mcp

* [2014-08-09 15:28:34] : starting with mcp for LB_LP0009_1st_trip

* [2014-08-09 15:28:36] : starting with mcp for LB_LP0009_2nd_trip

* [2014-08-09 15:28:37] : generating html output for mcp


------------------------------------------------------------
* Kernel density estimation
------------------------------------------------------------
* [2014-08-09 15:28:38] : Init kde

* [2014-08-09 15:28:38] : starting with kde for LB_LP0009_1st_trip

* [2014-08-09 15:28:40] : starting with kde for LB_LP0009_2nd_trip

* [2014-08-09 15:28:42] : generating html output for kde


------------------------------------------------------------
* Local convex hull
------------------------------------------------------------
* [2014-08-09 15:28:42] : Init locoh

* [2014-08-09 15:28:42] : starting with locoh for LB_LP0009_1st_trip

* [2014-08-09 15:28:42] : starting with locoh for LB_LP0009_2nd_trip

* [2014-08-09 15:28:42] : generating html output for locoh


------------------------------------------------------------
* Home range asymptote
------------------------------------------------------------
* [2014-08-09 15:28:42] : Init asymptote

* [2014-08-09 15:28:42] : starting with asymptote for LB_LP0009_1st_trip

* [2014-08-09 15:28:42] : starting with asymptote for LB_LP0009_2nd_trip


------------------------------------------------------------
* Core area
------------------------------------------------------------
* [2014-08-09 15:28:42] : Init ca

* [2014-08-09 15:28:42] : starting with ca for LB_LP0009_1st_trip

* [2014-08-09 15:28:42] : starting with ca for LB_LP0009_2nd_trip

* [2014-08-09 15:28:42] : generating html output for ca

_______________________________________________
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov

Reply via email to