Bookmark and Share

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]

st: Sort graphic by a non-graphed variable


From   [email protected]
To   [email protected]
Subject   st: Sort graphic by a non-graphed variable
Date   Wed, 28 Aug 2013 15:41:10 +1000

Hi Statalist,
I'm using version 8
Consider the following...

sysuse auto, clear
keep if _n < 6
keep make price weight
list
graph hbar (asis) price , over(make)

Here the order of the hbars is sorted by make.
However, I'd like to have the hbars sorted by weight (a third variable
that I don't wish to graph).
How can I go about this?
Mike.



*
*   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/


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