for(n in 1:n.spp)
{
Ind = unique(Raw[Raw$SPP==as.character(sp.list$SPP[n]), "INDIV"]);
I = length(Ind);
par(mfrow=c(I,1), oma=c(5,5,5, 2), mar=c(3, 0, 0, 0));
for(i in 1:I)
{
Dat = subset(Raw, Raw$SPP==as.character(sp.list$SPP[n]) & Raw$INDIV==Ind[i])
Y_ax =seq(0, 35, 10); Y_ax2=seq(0, 35, 5);
X_ax =seq(0, max(Dat$LL), 0.2); X_ax2 =seq(0, max(Dat$LL), 0.1);
plot(1:2, 1:2, type="n",log="", axes=F,ann=F, xlim = c(-0.05, max(Dat$LL)+0.05), ylim=c(min(Y_ax), max(Y_ax)), xaxs="i", yaxs="i", las=1)
axis(2, at=Y_ax, labels=Y_ax, las=1, tck=0.030, cex.axis=0.8, adj = 0.5)
axis(4, at=Y_ax, labels=F, tck=0.03)
X<-Dat$AGE; Xout<-data.frame(X = c(0,Dat$LL[1]))
Y<-Dat$S2AV_L;
points(X,Y,type="p", pch=Fig$Symb[2], cex=1.3, col= Fig$Cols[2]);
R<-lm( Y~ X); points(Xout$X, predict(R, Xout), type="l", col= Fig$Cols[2], lty = "dotted")
legend("topright", legend = paste("indiv = ",Ind[i]), bty= "n")
}
mtext(expression(paste("Intercepted light (mol ", m^{-2},d^{-1},")")), side = 2, line = 3, outer = T, adj = 0.5, cex =1.2)
mtext(expression(paste("Leaf age (yrs)")), side = 1, line = 0.2, outer = T, adj = 0.5, cex =1.2)
mtext(as.character(sp.list$Species[n]), side = 3, line = 2, outer = T, adj = 0.5, cex =1.5)
}
rm(R, Ind, I, i, X, X_ax, X_ax2, Y_ax, Y_ax2, Y, Xout, Dat)