Problems with xyplots of MFA ~Ring Number

5 views
Skip to first unread message

Dave Auty

unread,
Jun 22, 2009, 4:48:21 AM6/22/09
to Forest-R
Hi All,

I’m running the following code to produce lattice plots of microfibril
angle versus ring number in Scots pine. There are 12 trees and 5
sample heights (“Position”) in each tree:

xyplot(MFA ~ RN | Tree, data = MFA.data,
groups = Position, subscripts=TRUE,
auto.key=list(space = "top", points = FALSE, lines = TRUE,
reverse.rows=TRUE, title="Disc Position (1=1.3m)", cex=0.5,
text=paste("Disc:", levels(MFA.data$Position))),
xlab = "Ring Number", ylab = "MFA",
panel = function(x, y, subscripts, groups) {
panel.grid(h=-1, v= 2)
panel.xyplot(x, y, subscripts=subscripts, groups=groups,
type="a")
panel.superpose(x=x, y=y, groups=Position,
subscripts=subscripts,lty=8, cex=0.25)


})


But R gives the error message:

> })
Error: unexpected '}' in " }"


This code has worked for me previously but now will not output the
plots. Does anyone know what could be going wrong here? I also would
like to make the key larger - can anyone give me some advice please?

Thanks in advance,

Dave
Reply all
Reply to author
Forward
0 new messages