<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:windowtext;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-GB link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Andy (and everyone),</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you very much for your reply. During past few days I’ve managed to find all of these functions myself and to check how they work on my data. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However, I encountered some problems. When I used ancillary variable as hull metric in order to make a two dimensional scatter plot and run this function:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>hsp2 <- lhs.plot.scatter(Lizard.lhs.k21, x="anv", y="area", anv="Air_temp",col="spiral",bg="black"), </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> I was sent to the debugging environment in R. The message on the top says: “Debug location is approximate because the source is not available”, and when I do the execution, I get my scatter plot. But, when I run the next function:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>plot(Lizard.lhs.k21, hpp=T,hsp=hsp2, hpp.classify="hsp"),</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> so I can plot my data points and use a scatter plot as a legend, I get the following error message: ”Can’t find values for saved hull scatter plot”. I am guessing I should do something differently in the debug part of the problem?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Also, I think it would be nicer to use mean values of ancillary variables for all data points included in one hull, not only the value of parent point, and I would be really grateful if you or anyone else can help me with that. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cheers,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Maja</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:lyons.andy@gmail.com">Andy Lyons</a><br><b>Sent: </b>24 October 2016 19:22<br><b>To: </b><a href="mailto:maja.bradaric92@gmail.com">maja.bradaric92@gmail.com</a>; <a href="mailto:tlocoh-info@lists.r-forge.r-project.org">tlocoh-info@lists.r-forge.r-project.org</a><br><b>Subject: </b>Re: [tlocoh-info] Ancillary variables</p></div><p class=MsoNormal><o:p> </o:p></p><p style='margin-bottom:12.0pt'>Hi Maja. Good questions. You are correct that there are not many guidelines for using ancillary variables in the documentation, but your instincts on how they could be useful in an analysis seem spot on. As a reminder to others, 'ancillary variable' is the T-LoCoH term for additional columns or attributes associated with each location. They can be either measured values from a GPS sensor (e.g., temperature), or derived during post-processing from other data (e.g., NDVI values). See <tt><span style='font-size:10.0pt'>lxy.anv.add()</span></tt> and <tt><span style='font-size:10.0pt'>lxy.gridanv.add()</span></tt>. Internally, ancillary variables are saved in columns in the data frame attached to the SpatialPointsDataFrame which contains the locations. All the original points are saved in both locoh-xy and locoh-hullset objects.<br><br>One way you can use ancillary variables is for subsetting data, as you suggested. This could be useful for example if you wanted to look at space use patterns for different sets of locations based on an attribute field. To create subsets of hulls, see <tt><span style='font-size:10.0pt'>lhs.filter.anv()</span></tt>, to create subsets of points from a locoh-xy object see <tt><span style='font-size:10.0pt'>lxy.subset()</span></tt> (I can send a code sample if it isn't clear how to use). Subsetting location data could also of course be done prior to turning the locations into a locoh-xy object. <br><br>Ancillary variables can also be used to sort hulls when constructing isopleths. This is one option for differentiating internal space within the 'home range' along a gradient other than density. If your GPS sensor recorded temperature, for example, you could create a utilization distribution that highlights how the individual used the space based on a temperature gradient. IMHO, the ability to create UDs that differentiate space use along behavioral or environmental gradients is one of T-LoCoH's most interesting and underutilized features which has a lot of promise for connecting the concept of a home range to a much broader range of behavioral and ecological questions (e.g., <a href="http://jmammal.oxfordjournals.org/content/93/4/890">Fieberg and Börger 2012</a>). <br><br>To sort hulls based on an ancillary variable, you would pass <tt><span style='font-size:10.0pt'>sort.metric="anv"</span></tt> to the function <tt><span style='font-size:10.0pt'>lhs.iso.add()</span></tt>, with an additional argument called <tt><span style='font-size:10.0pt'>anv</span></tt> that passes the name of the ancillary variable column name of interest (e.g., <tt><span style='font-size:10.0pt'>anv="temp"</span></tt>). The 'anv' hull metric is defined to be the ancillary variable value of the hull parent point. You may ask why the hull parent point, and not the mean value of all points used to construct the hull, or all points enclosed by the hull? That was just the easiest to implement, but if you were going to sort hulls for isopleths it might be better to define a hull metric for the mean ancillary value for all enclosed points (depends on the pattern you're seeking). Defining new hull metrics is not terribly hard but takes some coding knowledge, contact me for details.<br> <br>You can also use ancillary variables of the hull parent point as you would any other hull metric - for plotting symbology, in scatter plots, etc. If you see an interesting pattern in a two-dimensional scatterplot of an ancillary variable and another hull metric, you can use that as a legend in a map (e.g., <a href="https://static-content.springer.com/image/art%3A10.1186%2F2051-3933-1-2/MediaObjects/40462_2012_Article_2_Fig10_HTML.jpg">Fig 10</a> in <a href="http://dx.doi.org/10.1186/2051-3933-1-2">Lyons et al 2013</a>). <br><br>Hope this helps you think about possible ways for using ancillary variables in an analysis. A lot of this is new territory, but T-LoCoH is all about giving you a flexible set of tools to explore and visualize your data. Let me know if you have any questions or need help with any of the functions.<br><br>Cheers,<br>Andy <br> <br><br></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:black'>On 10/19/2016 6:54 AM, <a href="mailto:maja.bradaric92@gmail.com">maja.bradaric92@gmail.com</a> wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='color:black'>Hello everyone,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>I’ve started to use T-LoCoH just recently and I am still investigating can this package help me answer all the questions I have in my research. I guess this is very basic question, but, there is no so much explained about ancillary variables and what can be done if we have them in our data. <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>If I include ancillary variables in my lxy object (temperature, for example), does that mean space use maps will later be created according to the ancillary variable? Or I can use them just to make subsets of the hulls according to certain temperature values? Can I produce behavioural maps according to temperature and possible temperature changes? I don`t really understand how this works, so I would be very grateful for any clarification, in order to be able to continue with my data analysis.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Also, is it possible to include only one ancillary variable, or it can be more of them?<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Thanks in advance.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Maja<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________</pre><pre>Tlocoh-info mailing list</pre><pre><a href="mailto:Tlocoh-info@lists.r-forge.r-project.org">Tlocoh-info@lists.r-forge.r-project.org</a></pre><pre><a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tlocoh-info">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tlocoh-info</a></pre></blockquote><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='color:black'>-- <br></span><strong><span style='color:black'>T-LoCoH</span></strong><span style='font-family:"Times New Roman",serif;color:black'>: A hull-based method for home range construction and spatiotemporal analysis of movement data.<br>Lyons, A., Turner, W.C., and WM Getz. 2013. Home Range Plus: A Space-Time Characterization of Movement Over Real Landscapes. <a href="http://www.movementecologyjournal.com/content/1/1/2">BMC Movement Ecology 1:2</a>.<br><a href="http://tlocoh.r-forge.r-project.org">http://tlocoh.r-forge.r-project.org</a></span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p></div></body></html>