search for: paraslm1

Displaying 1 result from an estimated 1 matches for "paraslm1".

Did you mean: param1
2006 Sep 01
2
Lattice plot with fitted curves
...appears that there is not much autocorrelation in the data and I have fitted a cubic for each site using lm. I would like to obtain a lattice plot with one panel for each site and showing the original data, and the fitted cubic. The closest I have got to doing what I want is: fit <- fitted(paraslm1) temp <- cbind(paras, fit) xyplot(Density ~ Year | LocCode, data = temp, panel = function(x, y, ...){ panel.xyplot(x,y) panel.xyplot(x[LocCode],fit[LocCode],type="l") }) This doesn't give an error (most of my other attempts did), and draws the...