Welcome to R. You can start by looking at the predict function for the regression model you are using (e.g., ?predict.lm if you are using a linear model).
Then do something like so: data(cars) cars.lm <- lm(dist ~ speed, cars) dist.pred <- predict(cars.lm) plot(cars$speed, cars$dist, ylim = c(-2, 120)) lines(cars$speed, dist.pred, col = "red", lwd = 2) HTH, Andy ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
