[R] CCA with Vegan - Plot problem

rumble14 heather.rumble at gmail.com
Fri Nov 9 14:16:02 CET 2012


Thanks for replying. Apologies for not putting the code, I have not deviated
from that used on the website I linked to.

>Can you show the exact code you used please? 

I am using:
#below is Species_1 etc
org <- read.table ("Organisms.S", header=TRUE, row.names=1)
#below is environmental variables
env<-read.table ("Environment.S, header=TRUE)
attach(env)
library(vegan)
cca.1<-(org~Temp+Water+etc)
cca.1

At this point I have noticed (this morning) that I should be getting the CCA
come up here, and this is working with test data but not my actual data
which is formatted in exactly the same way.
If I type:

cca(formula = org ~ Temp + Water+etc, data = org)

at this point, I get what looks like but (you're right) might not be an
output.
For the graph I was then trying to use:

cca1.plot <- plot(cca.1,choices=c(1,2))

at which point I get error messages.


>Also, not sure why you are 
attaching anything 

As I said, I'm quite new to R. It does so on the tutorial linked so  had
assumed it was to do with being able to access the parameters Temp etc.

H






--
View this message in context: http://r.789695.n4.nabble.com/CCA-with-Vegan-Plot-problem-tp4649012p4649045.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list