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

st: RE: Getting rid of -subtitle()- in -twoway [graphtype], by()-


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: Getting rid of -subtitle()- in -twoway [graphtype], by()-
Date   Sat, 22 Jan 2005 20:44:20 -0600

Clive,

What you are seeing is not a subtitle() but a note().  Take a look at the
diagram in [G] page 501.

The solution is:

twoway (line ldeath lpop) (line ldivorce lpop), xtitle("") ///
  ylabel(6(1)13, angle(0)) xlabel(11(1)17)  ///
  scheme(s2mono) by(region, note("") )
                          ^^^^^^^^^^ 

In Mitchell's book, take a look at the third example, page 153.

Scott
       

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Clive Nicholas
> Sent: Saturday, January 22, 2005 8:01 PM
> To: [email protected]
> Subject: st: Getting rid of -subtitle()- in -twoway [graphtype], by()-
> 
> All,
> 
> I've been successfully been generating some very good, but simple, -twoway
> line- graphs by using this long command (to use a not entirely meaningful,
> but accessible, toy-data example):
> 
> . webuse census
> . g lpop=ln(pop)
> . g ldeath=ln(death)
> . g ldivorce=ln(divorce)
> . label var death "Natural log of the death rate"
> . label var divorce "Natural log of the population rate"
> . twoway (line ldeath lpop) (line logdivorce lpop), xtitle("") ///
>   ylabel(6(1)13, angle(0)) xlabel(11(1)17) legend(cols(1) stack) ///
>   scheme(s2mono) by(region)
> 
> But I find that, even though the option is not specified above, -twoway,
> by()- produces a subtitle at the bottom of the graph, but I don't need
> them for the graphs I'm generating. I've checked the help files
> (specifically, -whelp title_options-) and Mitchell's (2004: 154; 281-4;
> 314) book for guidance. But although they all mention how to _use_ the
> -subtitle()- option, I could find nothing in these sources that tell you
> how to switch it off: even if I type -subtitle("")-, I'm stuck with
> subtitles I don't want.
> 
> Is there a solution to this? Thanks in anticipation.
> 
> CLIVE NICHOLAS        |t: 0(044)7903 397793
> Politics              |e: [email protected]
> Newcastle University  |http://www.ncl.ac.uk/geps
> 
> Reference:
> 
> Mitchell M (2004) A Visual Guide to Stata Graphics, College Station: Stata
> Press.
> 



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