[adegenet-forum] UTMs vs lat/lon, and inverse distance network confusion

katherine.miller katherine.miller at students.tamuk.edu
Sat Nov 23 22:36:57 CET 2013


Greetings,



I am new to SPCA analysis, and haven't used R that much either.  I have 2 somewhat related questions:



1) I read somewhere that lat and lon have to be converted to UTMs prior to analysis.  I have a rather large spatial area (Iowa to Texas), so it spans 14R to 15T regions.  I've looked at this page, http://www.inside-r.org/packages/cran/PBSmapping/docs/convUL , and I'm wondering about the erroneous results and how this will work.  Has anyone out there done SPCA with a large area?



2) Additionally, I've tried to duplicate a set of data on a smaller scale (XY data is already in UTMs, alleles from 14 loci are in a .gen file), and when I am prompted to choose a network, I choose 7 (inverse distance, the locations are not evenly distributed).  I am prompted to choose an exponent and a minimum distance.  I understand the exponent of 1, I think, but either my understanding of the min distance is wrong, or something else is producing this error:



error in if (any(x < 0)) stop("values in x cannot be negative") : missing value where TRUE/FALSE needed



I have read through the tutorials for spca and adegenet, but clearly I'm still confused.  Any help would appreciated!



Katherine S. Miller

Ph.D. candidate



Caesar Kleberg Wildlife Research Institute

Texas A&M University-Kingsville

MSC 218, 700 University Blvd

Kingsville, TX 78363



(361) 593-4486, office


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20131123/72d08f1e/attachment.html>


More information about the adegenet-forum mailing list