[R] Re creating Procrustes Plot in Lattice

Andrewjohnclose a.j.close at ncl.ac.uk
Wed Jul 30 13:59:30 CEST 2008


Hi, I have been trying to create a function to generate a Procrustes plot,
generated from package "vegan"
in lattice.

standard vegan code as follows
library(vegan)
pro=protest(P1, P8, permutations=4999,choices=1:4)
plot(pro) 

Now, here is the code for the function that I have failed to get to work
properly.

panel.procrustes=function(x,y)
}Pro=protest(x,y,permutations=4999,choices=1:4)
Proplot=plot(Pro)
}
xyplot(P1[1:4]~P8[1:4],panel=panel.procrustes)

I can generate an empty plot, but not much else - hope someone can help and
point out the obvious!

Kind regards

Andrew http://www.nabble.com/file/p18731653/P1.csv P1.csv 
http://www.nabble.com/file/p18731653/P8.csv P8.csv 
-- 
View this message in context: http://www.nabble.com/Recreating-Procrustes-Plot-in-Lattice-tp18731653p18731653.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list