Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Suppressing specific unwanted labels within legend()


From   "Siyam, Amani" <[email protected]>
To   <[email protected]>
Subject   st: Suppressing specific unwanted labels within legend()
Date   Thu, 23 Jun 2005 08:32:52 +0200

Dear Stata users,

I wish to graph two quantities "A" and "B" against "agedays" and those
were measured twice a year by four different testers.

I have the graph I need but I have a problem with the legend. because
they are 2 quantities x 4, the legend keeps repeating and I only wish to
display the first two as below, but disable the repeated ones from
lab(3) to lab(8), is there a way I can suppress those in the legend()
part of the command.

#delimit ;

twoway line A1 B1 agedays, sort clcolor(green red) clp(l l)

|| line A2 B2 agedays, sort clcolor(green red) clp(l l) 

|| line A3 B3 agedays, sort clcolor(green red) clp(l l)  

|| line A4 B4 agedays, sort clcolor(green red) clp(l l)  

legend( pos(5) ring(0) col(1) lab(1 "Jan 05") lab(2 "June 05") );

 

Many thanks in advance.

Amani

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index