Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: How to center histogram bars over ticks


From   maryannlong <maryann.long@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: How to center histogram bars over ticks
Date   Sat, 9 Oct 2010 01:07:40 -0700 (PDT)

Hello to all

I am getting up to speed with Stata 10.1 that I used in my biostats class
last year and then set aside when I didn't need it for several months.

I'm experimenting with a simple histogram of age distribution.  Here is the
command I'm using:

. histogram age6, bin(6) frequency fcolor(midblue) gap(20) addlabel
xtitle(Age distribution of Australian midwives in NMeS baseline survey)
xlabel(, 
> valuelabel) normal
(bin=6, start=1, width=.83333333)

It's working great, except I can't figure out how to center the bars over
the x-axis ticks.  I tried changing the gap, but that didn't do much.

I really appreciate any advice.

Maryann Long
Brisbane, QLD, Australia
-- 
View this message in context: http://statalist.1588530.n2.nabble.com/How-to-center-histogram-bars-over-ticks-tp5617522p5617522.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index