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

st: RE: note option in the twoway graph going nuts


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: note option in the twoway graph going nuts
Date   Fri, 5 Nov 2004 19:11:41 -0000

I couldn't reproduce the basic problems here with 
a concocted analogue using auto data. Perhaps 
some combination of details in your example is 
the issue, in which case StataCorp tech-support 
would love that you sent them the _simplest_ 
combination of dataset and code that produces 
these problems. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Alexand
> Shepotilo
> Sent: 05 November 2004 18:52
> To: statalist@hsphsun2.harvard.edu
> Subject: st: note option in the twoway graph going nuts
> 
> 
> Dear statalist users,
> 
> I want to place a long note at the bottom of the graph. As said in the
> help file, I wrote
> 
> note ("First" "Second" "Third"
> 
> Stata says "unmatched quote"
> 
> If I try to fit the note in two lines
> 
> note ("First" "Second")
> 
> I get the following :
> 
> First
> S
> e
> c
> o
> n
> d
> 
> 
> Finally, if I specify
> 
> note ("First" "Second" , orientation (horizontally))
> 
> Stata says ") required"
> 
> I have wasted an hour tring to fix it but could not. If I do 
> not include
> note everything works perfectly.
> 
> Here is the actual graph:
> 
> twoway (kdensity wtototal  if wtototal<=15&wtototal>=0) (kdensity
> wtototal  if a==1&wtototal<=15&wtototal>=0, bfcolor (yellow)) 
>  (kdensity
> wtototal  if a==10&wtototal<=15&wtototal>=0, bfcolor (red)),
> ytitle(Distribution of welfare gains, margin(small)) xtitle(Welfare
> gains as a percent of consumption from WTO accession, margin(small))
> xlabel(-1(3)15, labsize(small)) xmlabel(-1(1)15, ticks nolabels)
> xscale(range(0 15)) title(Figure 3. Distributions of the estimated
> welfare gains from Russian WTO accession, size(medsmall)) 
> subtitle("for
> the entire sample, the poorest decile,  and the richest decile.", size
> (medsmall)) legend(order(1 "all households" 2 "the poorest decile" 3
> "the richest decile") size(small)) note ( "Observations in a 
> range from
> 0% to 15% are shown. Deciles are constructed" "to be 
> representative  of
> ten percent of Russian population based on the weights of the 
> Household
> Budget Survey", size(vsmall) ) 

*
*   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