Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Plot histogram w/X axis in descending order?
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Plot histogram w/X axis in descending order?
Date
Fri, 26 Oct 2012 18:54:03 +0100
sysuse auto
histogram rep78, discrete xsc(reverse) barw(0.8) xla(1/5)
(That's a command with options; no functions involved. See -help axis
scale options-.)
Nick
On Fri, Oct 26, 2012 at 6:48 PM, John Whitmer <[email protected]> wrote:
> How can I plot a histogram with my X axis values in descending order? I've tried the "descending" command, but it looks like that's only available for scatterplots.
>
> For context, I'm trying to plot a histogram of the grade distribution frequencies from a course. The data is in grade points; so it's discrete.
>
> Seems like an easy function and common request, but I can't seem to find an answer in the help file nor web searching.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/