On 7/20/08, Bryan Hanson [EMAIL PROTECTED] wrote:
Hi All...
I can¹t seem to find an answer to this in the help pages, archives, or
Deepayan¹s Lattice Book.
I want to do a Lattice plot, and then update it, possibly more than once,
depending upon some logical options. Code below; it
Try this:
library(lattice)
fancy.lm - function(x, y, fit = TRUE, resid = TRUE){
model - lm(y ~ x)
y.pred - predict(model) # Compute residuals for plotting
res.x - as.vector(rbind(x, x, rep(NA,length(x # NAs induce breaks
in line
res.y - as.vector(rbind(y,
2 matches
Mail list logo