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: Labelling axes as percentages


From   Ronan Conroy <[email protected]>
To   statalist edu <[email protected]>
Subject   st: Labelling axes as percentages
Date   Wed, 17 Apr 2013 09:36:45 +0000

It seems to me that I could save a certain amount of time if I could replace lines like

	title("Figure 1" "Prevalence of DSM-IV Criterion C symptoms") ///
	ylabel(0 "0%" 20 "20%"  40 "40%" 60 "60%")

with

	title("Figure 1" "Prevalence of DSM-IV Criterion C symptoms") ///
	ylabel(0 (20) 60, aspercent)

The wishful-thinking Stata option -aspercent- would label the axes interpreting values as percentages.

Does anyone know a neat way of doing this? 

(I am already familiar with Nick's excellent SJ article on plotting on transformed scales (http://www.stata-journal.com/sjpdf.html?articlenum=gr0032).


Ronán Conroy
[email protected]
Associate Professor
Division of Population Health Sciences
Royal College of Surgeons in Ireland
Beaux Lane House
Dublin 2


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