[R] Re creating Procrustes Plot in Lattice

From: Andrewjohnclose <a.j.close_at_ncl.ac.uk>
Date: Wed, 30 Jul 2008 04:59:30 -0700 (PDT)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 30 Jul 2008 - 12:58:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 30 Jul 2008 - 17:32:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive