Académique Documents
Professionnel Documents
Culture Documents
All the species names, rate change in # of trees/yr (Beta 1), R-squared, and F statistic
1 Adelia triloba -2.03539445628998 0.981604298259277 213.442099049975
2 Alseis blackiana 9.30703624733475 0.970441712163511 131.325835587207
3 Astrocaryum standleyanum -3.05373134328358 0.970477528480617 131.490011307953
4 Beilschmiedia pendula -1.56460554371002 0.94963403471829 75.4187101870688
5 Casearia arborea -3.09808102345416 0.970613594178035 132.117360667843
6 Casearia sylvestris -1.18592750533049 0.972020156888916 138.960058214748
7 Cassipourea elliptica 1.28102345415778 0.975708533542084 160.666880319054
8 Cupania seemannii 1.16162046908316 0.945117729325721 68.8832818113459
9 Dendropanax arboreus -1.61791044776119 0.99390418374449 652.187757691084
10 Drypetes standleyi 5.1590618336887 0.952832347092786 80.8038804870926
11 Eugenia oerstediana 2.5863539445629 0.937443176583637 59.941865675898
12 Faramea occidentalis 28.4409381663113 0.930186450234486 53.2954679060872
13 Ficus tonduzii -1.21151385927505 0.986503546632395 292.374157791785
14 Garcinia intermedia 2.25245202558635 0.928617826970584 52.0363999895552
15 Guarea 'fuzzy' -2.32196162046908 0.988590274724697 346.578116780642
16 Guatteria dumetorum -4.07547974413646 0.945349868078739 69.1928699781216
17 Hasseltia floribunda -3.43965884861407 0.957492002792694 90.0999403122319
18 Hirtella americana -0.249466950959488 0.953844224256867 82.6630434782609
19 Hirtella triandra 10.9462686567164 0.989417645823737 373.987726868184
20 Inga acuminata 1.8409381663113 0.945098116775584 68.8572457824381
21 Inga cocleensis -1.25501066098081 0.977891547595055 176.926277730114
22 Inga thibaudiana 1.86993603411514 0.957793424786226 90.7719633668507
23 Lacistema aggregatum -0.527078891257996 0.936019410337475 58.5189611583545
24 Lacmellea panamensis 0.922814498933902 0.947329495110514 71.9438324806808
25 Laetia procera 0.280597014925373 0.982089552238806 219.333333333333
26 Lindackeria laurina -1.5091684434968 0.983781013360689 242.62453265144
27 Lonchocarpus heptaphyllus -1.79957356076759 0.96667520703147 116.030753192599
28 Platymiscium pinnatum -0.867803837953092 0.940852855745627 63.6279480679112
29 Platypodium elegans -0.95181236673774 0.931774211648524 54.6288571616554
30 Poulsenia armata -12.4660980810235 0.987321749880273 311.500953382842
31 Pouteria reticulata 2.66098081023454 0.945803158798333 69.8050393954877
32 Protium tenuifolium 2.6272921108742 0.964587729878788 108.955198475232
33 Siparuna guianensis -0.322814498933902 0.950858271178847 77.3972177201512
34 Sloanea terniflora -0.850746268656716 0.963792621220982 106.474719101124
35 Spondias radlkoferi 0.33773987206823 0.928784648187633 52.1676646706586
36 Tabernaemontana arborea 2.8865671641791 0.950302666909604 76.4872163406485
37 Tachigali versicolor 1.15991471215352 0.930120288047633 53.2412204951066
38 Tetragastris panamensis 3.55479744136461 0.948067298157644 73.0227594193397
39 Trichilia pallida 0.727931769722814 0.970007440216116 129.366409163559
40 Trichilia tuberculata -24.4243070362473 0.992421305207608 523.795367088204
41 Trophis racemosa -1.45756929637527 0.984579417986296 255.393581671913
42 Xylopia macrantha 4.63283582089552 0.984183190422545 248.895502118301
43 Zuelania guidonia -0.282302771855011 0.934422174840085 56.9962283782027
#this outputs all the data created in the first for loop from the regressions in a matrix
#and also a list of species whose abundance correlated positively or negatively with time
#at a significance level of at least 0.002 (t test coefficient) and range of linear coefficient
species
#outputs species that changed positively and negatively
abundance$Species.Name[which(abs(species[,3])>tc & species[,2]>0)]
abundance$Species.Name[which(abs(species[,3])>tc & species[,2]<0)]
#species with significant linear coefficients
spp=abundance$Species.Name[which(abs(species[,3])>tc)]
#average changes in abundance in trees/year, R2 and F statistics for significant spp
data=species[which(abs(species[,3])>tc),c(2,4,5)]
#output species and linear coefficient, and stats listed in previous comment, together
as.data.frame(cbind(as.vector(spp),data),row.names=c("Species","Beta 1","R_Squared","F"))
#range of values for average change in abundance in trees/year
range(species[which(abs(species[,3])>tc),2])
#the rest of this script outputs a color coated 4-pane graphical representation of the models
#for those Species whose abundances showed a linear correlation with time, with alpha=0.002
#based on a two tailed t-test for linearity where critical t (df=4, alpha/2=0.001) = 7.173
layout(matrix(c(1,2,3,4),2,2,byrow=TRUE))
set1=which(abs(species[,3])>tc & abundance$X1982 > 500) #chosing rows
z=length(set1)
ylim=range(subset.data.frame(abundance[set1,],select=X1982:X2005))
plot.new()
plot.window(range(t),c(0,ylim[2]))
axis(1)
axis(2)
palette(rainbow(z))
leg=5
for (j in 1:z) {
points(t,subset.data.frame(abundance[set1[j],],select=X1982:X2005),col=j)
text(leg,species[set1[j],1]+species[set1[j],2]*leg-50,abundance$Species.Name[set1[j]],col=j)
lines(c(0,23),c(species[set1[j],1],species[set1[j],1]+species[set1[j],2]*23),col=j)
leg=leg+5
if (leg > 20){leg=5}
}
set2=which(abs(species[,3])>tc & abundance$X1982 > 190 & abundance$X1982 < 500)
z=length(set2)
ylim=range(subset.data.frame(abundance[set2,],select=X1982:X2005))
plot.new()
plot.window(range(t),c(ylim[1],ylim[2]))
axis(1)
axis(2)
palette(rainbow(z))
for (k in 1:z) {
points(t,subset.data.frame(abundance[set2[k],],select=X1982:X2005),col=k)
text(leg,species[set2[k],1]+species[set2[k],2]*leg-20,abundance$Species.Name[set2[k]],col=k)
lines(c(0,23),c(species[set2[k],1],species[set2[k],1]+species[set2[k],2]*23),col=k)
leg=leg+5
if (leg > 20){leg=5}
}
set3=which(abs(species[,3])>tc & abundance$X1982 > 75 & abundance$X1982 < 190)
z=length(set3)
ylim=range(subset.data.frame(abundance[set3,],select=X1982:X2005))
plot.new()
plot.window(range(t),c(0,ylim[2]))
axis(1)
axis(2)
palette(rainbow(z))
for (j in 1:z) {
points(t,subset.data.frame(abundance[set3[j],],select=X1982:X2005),col=j)
text(leg,species[set3[j],1]+species[set3[j],2]*leg-10,abundance$Species.Name[set3[j]],col=j)
lines(c(0,23),c(species[set3[j],1],species[set3[j],1]+species[set3[j],2]*23),col=j)
leg=leg+3
if (leg > 20){leg=5}
}
set4=which(abs(species[,3])>tc & abundance$X1982 < 75)
z=length(set4)
ylim=range(subset.data.frame(abundance[set4,],select=X1982:X2005))
plot.new()
plot.window(range(t),c(0,ylim[2]))
axis(1)
axis(2)
palette(rainbow(z))
for (k in 1:z) {
points(t,subset.data.frame(abundance[set4[k],],select=X1982:X2005),col=k)
text(leg,species[set4[k],1]+species[set4[k],2]*leg-5,abundance$Species.Name[set4[k]],col=k)
lines(c(0,23),c(species[set4[k],1],species[set4[k],1]+species[set4[k],2]*23),col=k)
leg=leg+5
if (leg > 20){leg=5}
}