Data source: Hall, Singer, Kainz & Lennon 2010. Functional Ecology 24: 898-908 Bacteria isolates were exposed to two different cultivation temperatures (6 and 28 °C). Fatty acid composition of their membranes was measured to investigate which fatty acids can be interpreted as adaptation and acclimation to temperature. The 17 fatty acids are proportional data (“relative abundances of various FAs).
library(vegan)
library(MASS)
lipids<-read.table(file="data/BacterialMembrane.txt",header=TRUE)
names(lipids)
## [1] "case" "isolate" "temperature" "FA1_SAnb" "FA2_MU"
## [6] "FA3_SAnb" "FA4_SAb" "FA5_SAb" "FA6_SAnb" "FA7_MU"
## [11] "FA8_SAb" "FA9_SAnb" "FA10_MU" "FA11_SAb" "FA12_SAnb"
## [16] "FA13_MUb" "FA14_MU" "FA15_SAnb" "FA16_MU" "FA17_MU"
## [21] "sum_MU" "sum_SA" "sum_SAbran" "sum_SAnbran" "SA_branprop"
The names of these fatty acids point to (un)saturation and branched molecule structure with the abbreviations: MU = mono-unsaturated, SA = saturated, nb = non-branched, b = branched. More double bonds and branched molecules require more space and increase membrane fluidity at cold temperature.
lipids2<-lipids[,grep("FA",names(lipids))] # choose only FA columns
mds_lipids = metaMDS() # to run a NMDS, $points to get scores, $stress to get information about fit
pch.temperature <- as.integer(as.character(lipids$temperature))
pch.temperature[pch.temperature==6]<-21
pch.temperature[pch.temperature==28]<-23
plot()
envfit()
ordihull()
legend()
H0 Temperature affects fatty acid composition
dmat = vegdist() # compute a dissimilarity matrix
betadisper() # to test dispersion, works only with one factor
adonis2() # PERMANOVA, just use like aov() or lm()