Skip to content
Back to formatted view

Raw Message

Message-ID: <418A0631.4090406@statistik.uni-dortmund.de>
Date: 2004-11-04T10:36:33Z
From: Uwe Ligges
Subject: Plotting a linear model object with R 2.0 for Mac OS X
In-Reply-To: <1099538004.41899e54c02b0@webmail.fas.harvard.edu>

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