Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Alice Guerra <alice.guerra88@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
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/