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

st: RE: Labelling part of graph axis?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Labelling part of graph axis?
Date   Mon, 26 Sep 2005 22:12:17 +0100

One possibility: 

sysuse auto 
gen foo = _n - 37 

scatter foo price , yla(0 20 40 -20 -40, ang(h)) 
	yaxis(1 2) yla(12 `" "positive" "effect" "' 
	-12 `" "negative" "effect" "', axis(2) notick 
	ang(h)) yti("", axis(2)) 

Nick 
[email protected] 

SamL
 
> I am using Stata 8.2.  I am graphing a coefficient estimated 
> on repeated
> cross sections over several years.  On the y-axis I want to label the
> region of the graph that is above zero as "Positive effect" 
> and also label
> the region of the graph that is below zero as "Negative 
> effect."  I know
> this may seem silly, but the audience is not well-versed in 
> stats and I
> believe this will help the presentation.  Also, there are 
> several other
> similar graphs for which labelling regions of the y-axis 
> would be useful.
> So, after perusing the graph manual, and the nice book "A 
> Visual Guide to
> Stata Graphics" I still do not know some way to accomplish 
> this aim.  Any
> ideas?

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index