Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New version of -regaxis- on SSC


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: New version of -regaxis- on SSC
Date   Thu, 15 Apr 2004 18:50:19 +0100

Dear All

Thanks to Kit Baum, there is now a new version of the -regaxis- package downloadable from SSC. In Stata, type

ssc desc regaxis

to find out more.

The -regaxis- package is a utility for generating linear and logarithmic axis scales, and is described as below on my website. The new version adds some sensible defaults for the -cycle()- and -maxticks()- options. For instance, if the user types

sysuse auto, clear
regaxis weight, include(0) lticks(xlabs)
regaxis mpg, include(0) lticks(ylabs)
scatter mpg weight, ylabels(`ylabs') xlabels(`xlabs')

then the scatter plot will have a semi-sensible default axis scale, including zero, for each of the 2 variables -weight- and -mpg-.

I am currently working on an even better version, which I hope to certify over the weekend.

Best wishes

Roger

-----------------------------------------------------------------------------------
package regaxis from http://www.kcl-phs.org.uk/rogernewson/stata8
-----------------------------------------------------------------------------------

TITLE
regaxis: Regular linear and logarithmic axis scales, ranges and tick lists

DESCRIPTION/AUTHOR(S)
The regaxis package contains 2 programs, named regaxis and logaxis.
regaxis generates a regular linear axis range and tick list for a list of
variables and/or numbers to be included in the axis range. logaxis generates
a regular logarithmic axis range and tick list for a list of variables and/or
numbers to be included in the axis range. Both programs can output the
elements of the axis range and/or tick list to be stored in local and/or
global macros, which can then be used in Stata graphics commands as axis
options and suboptions, such as the the range() suboption of the xscale() and
yscale() options, or the xlabel() ylabel(), xtick() and ytick() options.

Author: Roger Newson
Distribution-Date: 14april2004
Stata-Version: 8

INSTALLATION FILES (click here to install)
regaxis.ado
regaxis.hlp
logaxis.ado
logaxis.hlp
-----------------------------------------------------------------------------------
(click here to return to the previous screen)

--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index