r - Screeplot for variance after rda(mydata) in vegan -
i trying make 2 screeplots. 1. screeplot shows variance of each pc 2. plot shows relation of each variable pcx
i used vegan pca:
lui.c.v.pca <- rda(lui.c.v, scale=true)
i tried 1 vegan guide , replaced x (2x) lui.c.v.pca:
screeplot(lui.c.v.pca, bstick = false, type = c("barplot", "lines"), npcs = min(10, if (is.null(x$cca)) x$ca$rank else x$cca$rank), ptype = "o", bst.col = "red", bst.lty = "solid", xlab = "component", ylab = "inertia", main = deparse(substitute(lui.c.v.pca)))
error: object 'x' not found
does know did wrong or how can easily? thanks!
Comments
Post a Comment