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]

Re: st: RE: Histogram use value labels


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Histogram use value labels
Date   Tue, 24 May 2011 11:44:54 +0100

Example to show technique

. sysuse auto
(1978 Automobile Data)

. label def rep78 1 abysmal 2 poor 3 middling 4 good 5 outstanding

. label val rep78 rep78

. histogram rep78, discrete xla(1/5, valuelabel noticks) barw(0.6)

If your variable is really categorical, other programs address that
(e.g. -catplot- (SSC)).

Nick

On Tue, May 24, 2011 at 11:21 AM, Renger van Nieuwkoop
<renger@ecoplan.ch> wrote:

> I want a histogram with on the x axis the value labels. This is no
> problem in the graph editor, but I can't find the proper option for the
> command line.
*
*   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