For another take, see
http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0000SI&topic_id=1&topic=Ask%20E%2eT%2e
If that reference gets mangled, go to
http://www.edwardtufte.com/bboard/q-and-a?topic_id=1
and then find
"Graphic of the Day: A Single-Number Semi-Table"
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Oleg
> Badunenko, EUV
> Sent: 06 October 2004 17:16
> To: [email protected]
> Subject: Re: st: Histogram Question About Placement of Bars
>
>
> Hi Alan,
>
> 'tw hist' instead of 'hist' should work.
>
> Regards,
>
> Oleg.
>
> Alan Neustadtl wrote:
>
> >I am trying to produce a histogram of a variable with only
> two possible responses, 1 and 2. The graphic looks like I
> intended except for the large gap
> >between the y-axis and the first bar. I would like to shift
> both bars to the left or begin the bars closer to the y-axis.
> >
> >I have posted a jpeg of the histogram at
> http://www.bsos.umd.edu/socy/alan/histo.jpg and am using the
> following code:
> >
> >hist prayer, percent discrete gap(20)
> ///
> > title("Approve of Supreme Court Decision Prohibiting
> Requiring the" ///
> > "Recitation of the Lord's Prayer in Public
> Schools") ///
> > subtitle("(n=1,775)")
> ///
> > xlabel(1 "Approve" 2 "Disapprove")
> ///
> > xtitle("")
> ///
> > ylabel(,angle(0))
> ///
> > bfcolor(olive_teal) blcolor(teal)
> ///
> > note("Source: General Social Survey 2000")
> >
*
* 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/