----- Forwarded message from "Fetter, Karl" <[email protected]> -----

Date: Sat, 30 Mar 2013 21:48:41 -0400
From: "Fetter, Karl" <[email protected]>
Reply-To: "Fetter, Karl" <[email protected]>
Subject: naming dimensions of an array created by arrayspecs {geomorph}
To: "[email protected]" <[email protected]>

Hello Morphometrics World,

I am attempting to use plotGMPhyloMorphoSpace() from geomorph to plot my phylo tree in shape space. I have a tree and array of coordinates of the same length but with different names. I'm getting this error messager from R: "subscript out of bounds"; and it must be due to the different names in the tree and the coordinates. 

My question is how do I rename the dimensions of an array created by arrayspecs in R? I tried the obvious names(coords)<-my.names , but this totally destroyed the coords array. 

I can create an array w/ array(coords, dimnames=my.names, dim=???), but the dimensions are not right. My coordinate data set has the dimensions of 10 x 2 x 60, but I can't seem to get array to accept this. 

So I have two options, rename the array I created w/ arrayspecs, or correctly supply the 'dim=' argument with the array() function.

Any ideas?

Thanks,

Karl Fetter

*****************************************************************
Graduate Student
UNC Herbarium
Department of Biology
University of North Carolina
301 Coker Hall
Chapel Hill, NC 27599
Phone: 336-420-0339


----- End forwarded message -----



Reply via email to