Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Maximum number of options in graph line


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Maximum number of options in graph line
Date   Fri, 24 Aug 2007 14:28:47 +0200

--- Davide Cantoni wrote:
 [Interpretation: I want one line graph to be bold and thick, and all
other 65 comparison units to be very thin and grey. The numbers after
/// just help me keeping track of the number of plots]

Making many thin grey lines can be done in one -twoway line- graph if
you use the -connect(L)- option. This way you can bypass any problems
with the maximum length of a command, and save you a lot of typing 
(and thus possibilities of typos). See the example below:

*------------- begin example -------------
use http://www.stata-press.com/data/r9/pig.dta, clear
bys week: egen m = mean(weight) 
sort id week
twoway line weight week, connect(L) color(gs10) || /*
    */ line m week, connect(L) lpattern(solid)
*-------------- end example --------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index