Re: [R] Set panel background color in a multi-group trellis plot

2007-11-30 Thread crmontes
Thanks, I'll finaly figure it out. It was not very intuitive though, even looking at the help file. The final code, for whom it might interest is: xyplot(Volume ~ Age|Farm, groups = Treatment, data = my_data, panel= panel

[R] Set panel background color in a multi-group trellis plot

2007-11-30 Thread crmontes
Hi everyone, I am trying to change some of the default colors in a multipanel-multigroup lattice graphic, but when I change the panel color to white, the only group that is plotted is the last one, as panel.fill overwrites all the previous ones. Is there any way to set the panel background color

Re: [R] Calculate aggregate differences

2007-11-01 Thread crmontes
Thanks Andrew, but what you gave me can actually be done simpler like my_agg$vol.diff <- diff(my_agg$Vol) or my_agg$vol.diff <-c(NA, diff(my_agg$Vol)) # for a list with the same #length as the aggregated mean list However, what I need is to be able to h

[R] Calculate aggregate differences

2007-11-01 Thread crmontes
Hi everyone I am trying to summarize a table with yield estimates of a forest plantation. For that I have four blocks and four treatments measured over a period of 10 years (every year). In each plot trees are measured (diameters and heights). With aggregate function I can calculate the average