In addition to David's suggestion, you might want to examine the termplot function,
?termplot
HTH


-----Original Message-----
From: r-help-bounces@r-project.org on behalf of David Winsemius
Sent: Sat 11/20/2010 3:54 PM
To: Sonja Klein
Cc: r-help@r-project.org
Subject: Re: [R] How to produce glm graph
 

On Nov 20, 2010, at 4:27 AM, Sonja Klein wrote:

>
> I'm very new to R and modeling but need some help with visualization  
> of glms.
[snip]
> Is there a way to produce a graph in R that has these features?

Of course. Modeling would be of little value without such capability.  
In R, regression functions produce an object with a particular class  
("glm" in this case) and there is generally have predict method for  
each class. There is also a vector of fitted values within the object  
that may be accessed with the fitted or fitted values functions.

The predict.glm help page has a worked example.

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



	[[alternative HTML version deleted]]

