Escolar Documentos
Profissional Documentos
Cultura Documentos
Quantitative Genetics
Redundancy analysis
Contents
1 Redundancy analysis
Setting
Example: Artificial fish data
Triplots
Example: Height weight data
Example: Species richness on sandy beaches (RIKZ data)
The order of importance
Redundancy analysis Setting
Contents
1 Redundancy analysis
Setting
Example: Artificial fish data
Triplots
Example: Height weight data
Example: Species richness on sandy beaches (RIKZ data)
The order of importance
Redundancy analysis Example: Artificial fish data
Correlation triplot
row2
1
row3
Sand
row1
2
1
row9
Sp4 Sp3
Coral
row7
row5
RDA2
0
Sp6
1
Sp2
row10 Sp5
Depth
Sp1
row8
2
row6
1
row4
2 1 0 1 2 3
Redundancy analysis Example: Artificial fish data
Distance triplot
1
1
row2
row3
Sand
row1 Sp4 Sp3
row9
Coral row7 row5
0
0
row10
row8
Depth
1
row6
RDA2
1
row4 Sp6
2
Sp2
Sp5
3
Sp1
1 0 1 2 3 4
Redundancy analysis Example: Artificial fish data
Correlation triplot:
row2
1
row3
row1
SubstrateSand
2
1
row9
Sp4 Sp3
row7
row5
RDA2
0
Sp6
1
Sp2
row10 Sp5
Depth
Sp1
row8
2
row6
1
SubstrateOther
row4
2 1 0 1 2 3
Redundancy analysis Triplots
Contents
1 Redundancy analysis
Setting
Example: Artificial fish data
Triplots
Example: Height weight data
Example: Species richness on sandy beaches (RIKZ data)
The order of importance
Redundancy analysis Triplots
Contents
1 Redundancy analysis
Setting
Example: Artificial fish data
Triplots
Example: Height weight data
Example: Species richness on sandy beaches (RIKZ data)
The order of importance
Redundancy analysis Example: Height weight data
# Distance triplot
# The following command does not plot (type=None)
plot(myrda,scaling=1,type="n",main="Distance triplot")
segments(x0=0,y0=0,
x1=scores(myrda, display="species", scaling=1)[,1],
y1=scores(myrda, display="species", scaling=1)[,2])
text(myrda, display="sp", scaling=1, col=2)
text(myrda, display="bp", scaling=1,
row.names(scores(myrda, display="bp")), col=3)
points(myrda,display=c("sites"),scaling=1,pch=1,col=fm.col
Redundancy analysis Example: Height weight data
shoe
shoe
0
1
PC1
height
3
1
4
weight
4 3 2 1 0 1
RDA1
Redundancy analysis Example: Height weight data
# Correlation triplot
plot(myrda,scaling=2,type="n",main="Correlation triplot")
segments(x0=0,y0=0,
x1=scores(myrda, display="species", scaling=2)[,1],
y1=scores(myrda, display="species", scaling=2)[,2])
text(myrda, display="sp", scaling=2, col=2)
text(myrda, display="bp", scaling=2,
row.names(scores(myrda, display="bp")), col=3)
points(myrda,display=c("sites"),scaling=2,pch=1,col=fm.col
Redundancy analysis Example: Height weight data
1.0
0.5
0.0
shoe shoe
0
PC1
0.5
1.0
height
1.5
weight
2.0
3 2 1 0
RDA1
Redundancy analysis Example: Height weight data
# Distance triplot
# The following command does not plot (type=None)
plot(myrda,scaling=1,type="n",main="Distance triplot")
segments(x0=0,y0=0,
x1=scores(myrda, display="species", scaling=1)[,1],
y1=scores(myrda, display="species", scaling=1)[,2])
text(myrda, display="sp", scaling=1, col=2)
text(myrda, display="bp", scaling=1,
row.names(scores(myrda, display="bp")), col=3)
points(myrda,display=c("sites"),scaling=1,pch=1,col=fm.col
Redundancy analysis Example: Height weight data
4
weight
1
height
2
PC1
shoe
0
3 2 1 0 1
RDA1
Redundancy analysis Example: Height weight data
# Correlation triplot
plot(myrda,scaling=2,type="n",main="Correlation triplot")
segments(x0=0,y0=0,
x1=scores(myrda, display="species", scaling=2)[,1],
y1=scores(myrda, display="species", scaling=2)[,2])
text(myrda, display="sp", scaling=2, col=2)
text(myrda, display="bp", scaling=2,
row.names(scores(myrda, display="bp")), col=3)
points(myrda,display=c("sites"),scaling=2,pch=1,col=fm.col
Redundancy analysis Example: Height weight data
1
2.0
weight
1.5
height
1.0
PC1
0.5
0.0
shoe
0
0.5
1.0
RDA1
Redundancy analysis Example: Species richness on sandy beaches (RIKZ data)
Contents
1 Redundancy analysis
Setting
Example: Artificial fish data
Triplots
Example: Height weight data
Example: Species richness on sandy beaches (RIKZ data)
The order of importance
Redundancy analysis Example: Species richness on sandy beaches (RIKZ data)
library(vegan)
RIKZ <- read.table("RIKZGroups.txt", header = TRUE)
Species <- RIKZ[,2:5]
#Data were square root transformed
Species.sq <- sqrt(Species)
Correlation biplot
sit6
4
3 sit28
sit17
2
sit29
RDA2
1
1
sit4
Insecta
sorting1
chalksit19
sit18
sit35
Polychaeta
sit1
NAP
sit21
grainsize
salinity
sit9
temperature sit34 sit41
angle1
0
0
Mollusca sit39
humus
Crustacea
sit20 sit32 exposure
sit25
sit2
sit22sit37 sit27 sit26
sit10
sit3 sit23
sit42 sit11 sit31
sit43sit15
sit30
sit5
sit14
sit38 sit40
sit24
sit44
sit7 sit8 sit36sit33
sit16
sit12
penetrability
sit13 sit45
3 2 1 0 1 2
RDA1
Redundancy analysis Example: Species richness on sandy beaches (RIKZ data)
A different triplot
cor(Species.sq,ExplVar)
Redundancy analysis Example: Species richness on sandy beaches (RIKZ data)
Correlation
4
3 28
17
2
29
RDA2
1
1
4 Insecta sorting1
chalk19
35 18
Polychaeta 21NAP
grainsize
salinity 1
9 34 41
temperature
angle1
0
0
Mollusca
humus 39 exposure
Crustacea 20 32
25
2237 32 27 26
10
23
1143 31
5421438 1530
40
1244
24
7 8 13 453633
16
penetrability
3 2 1 0 1 2
RDA1
Redundancy analysis The order of importance
Contents
1 Redundancy analysis
Setting
Example: Artificial fish data
Triplots
Example: Height weight data
Example: Species richness on sandy beaches (RIKZ data)
The order of importance
Redundancy analysis The order of importance
anova(RIKZ_RDA)
step(RIKZ_RDA)
dropterm(RIKZ_RDA)