Hi,
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
positions ("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 it is giving me the error message:
> })
Error: unexpected '}' in " }"
This code has worked for me previously but now will not output the
plots. Does anyone know what's going on here?
Thanks in advance,
Dave
Dave Auty MSc
PhD Student
Forest Research NRS
Roslin
Midlothian
EH25 9SY
Tel: +44(0)131 445 6936
Fax: +44(0)131 445 5124
Mob: +44(0)7896 685895
www.forestresearch.gov.uk/timberproperties
+++++ The Forestry Commission's computer systems may be monitored and
communications carried out on them recorded, to secure the effective operation
of the system and for other lawful purposes. +++++
The original of this email was scanned for viruses by the Government Secure
Intranet (GSi) virus scanning service supplied exclusively by Cable &
Wireless in partnership with MessageLabs.
On leaving the GSi this email was certified virus-free
[[alternative HTML version deleted]]