[R] Trend lines on a scatterplot matrix

Mark Difford mark_difford at yahoo.co.uk
Fri Jul 20 10:57:40 CEST 2007


Hi Alan, 

There is a good, ready made, way of doing this, with additional options, in
Professor Fox's car package.  See:---

require(car)
?scatterplot.matrix

Cheers,
Mark.


Alan S Barnett-2 wrote:
> 
> I'm using pairs() to generate a scatterplot matrix;
> 
> pairs(~
> Fuzzy.gray.white.ratio+Fuzzy.gw.t.score+AgeWhenTested+signal_mean.noise,
> 	data=datam,subset=status=="control",main="Controls",
>         labels=c("G/W","Peak Separation","Age","S/N"))
> 
> 
> How can I add regression lines to the plots?
> 
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/Trend-lines-on-a-scatterplot-matrix-tf4113952.html#a11704499
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list