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: Graph bar with label wtih % symbol at the top of each bar


From   Marcos Vinicius <[email protected]>
To   [email protected]
Subject   st: Graph bar with label wtih % symbol at the top of each bar
Date   Thu, 10 May 2012 13:56:19 -0800

Hello,
I used the following code to plot a graph representing 3 binary variables with  ylabel to change the  percentage representation.(20% instead of 0.20) and blabel to show the label at the top of each bar.  My question: How to get a  percentage representation like 20% (instead of 0.20 ) for the label at the top of each bar ?

graph bar  (mean)  var1 var2 var3    ,     bargap(20)    yvaroptions(relabel(1 "text1 " 2 " text2"  3 "text3"   ))   blabel(bar   ,position(outside)  format(%4.2f))   ytitle("") ylabel( 0 "0" .2 "20%" .4 "40%" .6 "60%" .8 "80%" 1 "100%", angle(horizontal)) title("text4")   
 Best regards.
Marcos.

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
Check it out at http://www.inbox.com/marineaquarium



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