Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: - graph matrix - with regression lines

From   Philipp Rehm <>
Subject   st: - graph matrix - with regression lines
Date   Wed, 21 Apr 2010 13:01:58 -0400

Dear all,

is there a way to add regression lines (like in -graph twoway lfit- or -graph twoway qfit-) to a scatterplot matrix produced by -graph matrix-?

Here is an example of such a scatterplot matrix:

sysuse citytemp, clear
graph mat heatdd-tempjuly, ms(p) maxes(ylab(#4) xlab(#4))

I would like to add regression lines to each of the plots, as in this example:

tw (scatter  heatdd cooldd) (lfit heatdd cooldd)

Can this be done?

Many thanks,
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index