Re: st: Maximum number of options in graph line

 From "Scott Merryman" To statalist@hsphsun2.harvard.edu Subject Re: st: Maximum number of options in graph line Date Fri, 24 Aug 2007 08:15:20 -0500

```It looks like Maarten's is a superior solution, you can, however,
break up the second -line- statement.  For example (note,  you
probably want the black line drawn last so it will be on top of the
other lines):

sysuse auto,clear
rename mpg  mpg_1000
forv i = 10(10)900 {
gen mpg_`i' = mpg_1000+invnorm(uniform())*10
}

twoway  line  mpg_?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_1?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_2?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_3?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_4?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_5?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_6?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_7?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_8?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_9?? price, sort lw(vthin ..) lc(gs10..)  ///
|| line mpg_1000 price, sort lw(thick) lc(black) ///
|| , legend(off)

Scott
*
*   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/
```