[R] Plotting a linear model object with R 2.0 for Mac OS X

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Nov 4 11:36:33 CET 2004


Justin Manjourides wrote:

> I'm using R for Mac OS X Aqua GUI version 2.0
> 
> When using plot() with a linear model object, the plot of the LSR line does not
> appear. I get the residual plots, the Normal Q-Q plots and Cook's Differnce
> plot, just not the first plot with the fitted line. I just get an empty Quartz
> window, with no graph displayed. I've even tried to use plot.lm() and plotting
> a glm object, but I get the same results. Has anybody run into this problem?

First plot the data, then add the line. That's mentioned in the docs and 
all good books about R:

  plot(data)
  abline(lmobject)

Uwe Ligges




> Justin Manjourides
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list