Bookmark and Share

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


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

st: twoway scatter plot -- how to show the regression equation in the legend


From   Alice Guerra <[email protected]>
To   [email protected]
Subject   st: twoway scatter plot -- how to show the regression equation in the legend
Date   Tue, 17 Sep 2013 09:56:16 +0200

Dear Statalist,

I was wondering if it is possible to compute and show in the legend
the regression line in a twoway scatter plot with lfit.

My command is the following:

twoway (lfit trasf0orga0 g0) (scatter trasf0orga0 g0, msymbol(oh)
mcolor(black) mcolor(red) msize(medium)) ///
(scatter trasf0orga0 g0,  mlabel(regione) msymbol(i) mlabcolor(black)
mlabsize(vsmall) mlabvpos(pos)), ///
title("Title", color(black) size(medium) span) ///
subtitle("subtitle", size(small) height(3) span) ///
note("Note: note", size(vsmall) span) ///
ytitle(, size(small) height(5)) ///
xtitle(, size(small) height(5)) ///
ylabel(, angle(0) labsize(vsmall)) ///
xlabel(, labsize(vsmall)) ///
legend(off) ///
graphregion(color(white))

Thank you for your time and help

Alice
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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