Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Labelling axes as percentages


From   Ronan Conroy <rconroy@rcsi.ie>
To   statalist edu <statalist@hsphsun2.harvard.edu>
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
rconroy@rcsi.ie
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index