Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: twoway graph legend


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: twoway graph legend
Date   Tue, 15 Nov 2011 15:16:16 +0000

Try 

separate moment, by(brackettype) veryshortlabel
line moment? rotation 

and see -help separate- 

and see 

SJ-5-4  gr0023  . . . . Stata tip 27: Classifying data points on scatter plots
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q4/05   SJ 5(4):604--606                                 (no commands)
        tips for using separate, gray-scale gradation, and text
        characters as class symbols to classify data points on
        a scatter plot

Nick 
n.j.cox@durham.ac.uk 

Nikolaos Pandis
 
In Stata 12, I am using the following commands:

twoway (line moment rotation, by(brackettype)) // moment and rotation continuous and brackettype has 4 levels
 
I like to have all graphs in one plot as shown below but somehow I cannot get on the legend below the x-axis to show the levels of brackettype. It shows "brackettype" for all 4 different color lines. If I use "lfit" instead of "line" it shows lfit instead of brackettype.

twoway (line moment rotation if brackettype==1) ||(line moment rotation if brackettype==2) ||(line moment rotation if brackettype==3) ||(line moment rotation if brackettype==4)
 
Any advise would be appreciated.

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index