Dave Auty
unread,Jun 22, 2009, 4:48:21 AM6/22/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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