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]

From |
Nick Cox <n.j.cox@durham.ac.uk> |

To |
"'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: RE: RE: finicky graph parsing |

Date |
Tue, 2 Nov 2010 19:45:01 +0000 |

Indeed. I don't see that what you type here should have worked at all. Tastes vary, but I 1. prefer to use || rather than the () notation for separate -twoway- calls: there are usually quite enough parentheses floating around. 2. tend to space out complicated graph commands over several lines in a do-file which I handle inside my favourite text editor, which highlights matches. Nick n.j.cox@durham.ac.uk Feiveson, Alan H. (JSC-SK311) Nick - thank you - but then I wonder why it went through to begin with (?). Nick Cox Take out the comma before -xtitle()-. Feiveson, Alan H. (JSC-SK311) This works: twoway (scatter P del1,c(l) s(i) clwidth(thick) clcolor(blue)) (scatter P del2,c(l) s(i) clcolor(red) clwidth(thick) ,xtitle("actual change (mm Hg)") ytitle("probability") legend(order(1 "same operator" 2 "different operators" ) cols(2) ) ) This gives the message "invalid varlist": twoway (scatter P del1,c(l) s(i) clwidth(thick) clcolor(blue)) (scatter P del2,c(l) s(i) clcolor(red) clwidth(thick),xtitle("actual change (mm Hg)") ytitle("probability") legend(order(1 "same operator" 2 "different operators" ) cols(2) ) ) So does this: twoway (scatter P del1,c(l) s(i) clwidth(thick) clcolor(blue)) (scatter P del2,c(l) s(i) clcolor(red) clwidth(thick), xtitle("actual change (mm Hg)") ytitle("probability") legend(order(1 "same operator" 2 "different operators" ) cols(2) ) ) The only difference is the spacing after "clwidth(thick)" and before "xtitle". Why? * * 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/

**References**:**st: finicky graph parsing***From:*"Feiveson, Alan H. (JSC-SK311)" <alan.h.feiveson@nasa.gov>

**st: RE: finicky graph parsing***From:*Nick Cox <n.j.cox@durham.ac.uk>

**st: RE: RE: finicky graph parsing***From:*"Feiveson, Alan H. (JSC-SK311)" <alan.h.feiveson@nasa.gov>

- Prev by Date:
**st: RE: RE: finicky graph parsing** - Next by Date:
**st: remove special characters from string** - Previous by thread:
**st: RE: RE: finicky graph parsing** - Next by thread:
**Re: st: finicky graph parsing** - Index(es):