Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: RE: Histogram use value labels

From   Nick Cox <>
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)).


On Tue, May 24, 2011 at 11:21 AM, Renger van Nieuwkoop
<> 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:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index