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: xlabel questions in graph bar options.


From   Amadou DIALLO <[email protected]>
To   [email protected]
Subject   st: xlabel questions in graph bar options.
Date   Wed, 2 Jan 2013 16:19:03 +0100

Dear Stata Listers,

First of all, happy new year 2013. Thank God the so-called maya
prophecy was not true.

I have 3 questions.

1. Is there any way to label my x-axis in a non alphabetical order?
Basically, I want to graph, putting "National" first, but Stata seems
to be ranking the labels alphabetically.
1 "National" 2 "No Education" 3 "Primary" 4 "Secondary" 5 "Tertiary
And Higher" 6 "Dk"
DK is appearing first followed by National, etc.

2. How to put the label "National" only in bold on the x-axis (and its
bars in a different color)?

3. Is there any way to export or send stata graphs directly to excel
(or to word using the file command)?

Syntax used:

 #d ;
 graph bar u5m imr, over(X) bargap(-30)
  legend( label(1 "Under-Five") label(2 "Infant") )
  ytitle("Per Thousand Alive Births")
  title("ChildMortality Rates") subtitle("Indicator Group: `varl'")
  note("Source: DialloA.B. using `lc' DHS data.")
 blabel(bar, position(inside) format(%7.1f) color(white))  ;
 #d cr

-- 
Amadou B. DIALLO, PhD.
Senior Economist, AfDB.
[email protected]
+21671101789
*
*   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