User Tools

Site Tools


en:history:2015-03-06-anadatr

2015-03-06 Import data, CA/DCA and ordination diagram

anadatr06032015.R
# Importing the data via clipboard
#vltava.spe <- read.delim (file = "clipboard", row.names = 1)
#vltava.spe.t <- t (vltava.spe)
 
# Importing the data from the file
setwd ('C:/Users/Zeleny/Dropbox/anadatr/data')
dir ()
vltava.spe <- t(read.delim (file = 'vltava.spe.txt', row.names = 1))
 
# DCA on vltava.spe data
install.packages ("vegan")
library (vegan)
decorana (veg =  log1p(vltava.spe))
 
# now calculating CA on vltava.spe
CA <- cca (X = log1p (vltava.spe))
ordiplot (CA, display = 'sites', type = 't')
 
 
# After this comes Exercise 1 and 3 from Unconstrained ordinations > CA+DCA > Exercises
# (Exercise 2 is homework)
en/history/2015-03-06-anadatr.txt · Last modified: 2017/10/11 20:36 (external edit)