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: change values in the x-axis


From   Emmanouil Mentzakis <[email protected]>
To   [email protected]
Subject   st: change values in the x-axis
Date   Mon, 19 Sep 2011 14:45:21 +0100

Hello,

I am doing a bar graph and my x-axis takes values from -20000 to
20000. Is there a way to hide the negative signs of the values left of
the zero. e.g.

clear all
sysuse auto
gen price2=-price
gen n=_n
twoway (bar price n, horizontal) (bar price2 n,  horizontal)


In the above graph i d like the values of the x-axis to be (left to
right): 20000 10000 0 10000 20000. Unfortunately I have quite a few
values and manually defining new label for my price2 would be hard.

Any suggestions would be much appreciated.

Regards
Manos
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index