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: Labeling Vertical Lines


From   Sharooon <treeshar@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Labeling Vertical Lines
Date   Tue, 4 Dec 2012 16:33:04 -0800 (PST)

I am making a histogram using data that ranges from 0-200 where I have four vertical lines that are important to my data:

histogram totalpoints, discrete percent xline(50 75 100 125) 


I'd like to label them, but when I run the code

histogram totalpoints, discrete percent xline(50 75 100 125) xlabel(50 "2 Stars" 75 "3 Stars" 100 "4 Stars" 125 "5 Stars") 


It replaces the tick marks with my "2 Stars" etc.. I can tell it to put some of the tick marks back on by writing xlabel( 25 50 "2 Stars"), but that also looks strange.

What I'd really like is for the numerical x labels to be there (stata default is fine) but with these additional vertical lines being labeled somewhere, there is space on the graph but I can't figure out how to do it. 

*
*   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–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index