> gdf <- geomorph.data.frame(Y.gpa, species = mytable$species, sex = mytable$sex)
> males <- lapply(gdf, "[", gdf$sex == "male")
> plotTangentSpace(males$coords,groups=males$species)Error in plotTangentSpace(males$coords, groups = males$species) : Data matrix not a 3D array (see 'arrayspecs').
> arrayspecs(males,17,262)Error in arrayspecs(males, 17, 262) : Matrix dimensions do not match input
> dim(Y.gpa$coords)[1] 17 2 262> dim(males$coords)NULL
> str(Y.gpa$coords) num [1:17, 1:2, 1:262] -0.3102 -0.2515 -0.1485 -0.048 0.0746 ... - attr(*, "dimnames")=List of 3 ..$ : NULL ..$ : NULL ..$ : chr [1:262] "0 " "1 " "2 " "3 " ...> str(Y.gpa$Csize) Named num [1:262] 404 546 573 485 392 ... - attr(*, "names")= chr [1:262] "0 " "1 " "2 " "3 " ...
> str(males$coords) num [1:4556] -0.3102 -0.2515 -0.1485 -0.048 0.0746 ...> str(males$Csize) Named num [1:134] 404 546 573 485 392 ... - attr(*, "names")= chr [1:134] "0 " "1 " "2 " "3 " ...
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/02068c34-dd0a-42b5-9443-e98f4f8f8ac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
Hello Michael,
The first example worked like a charm! Thank you once again for the quick and helpful answer! Cheers! Alexandre |