[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: number format in graph labels |

Date |
Wed, 13 Aug 2008 16:52:30 +0100 |

I broadly agree with Maarten. Contrary to your inclination, the easiest way to do what you want is to plot a new variable that is just the old one divided by 1000. You may well want to modify the variable label or indicate different units through an axis title. You can and should keep the existing variable exactly as is for other purposes. A more general tool for using graph scales other than the raw data is -mylabels- from SSC. It offers another solution equivalent to (and indeed apparently more general than) what I gather you can do in MS Excel. A written discussion of similar issues is at SJ-8-1 gr0032 . . . . . . . Stata tip 59: Plotting on any transformed scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox Q1/08 SJ 8(1):142--145 (no commands) tip on how to graph data on a transformed scale Nick n.j.cox@durham.ac.uk Maarten buis --- Gisella Young <gisellayoung@yahoo.com> wrote: > It occurs to me that a (hopefully) simpler way might just be to title > the y-axis "Whatever (thousands)" or "Whatever ('000)" and then have > the labels all divided by a thousand, so what would have been 1000000 > would just be 1000, in which case the absence of spaces doesn't > really matter as the smaller number of 0's is easy to see. However > I'm not sure if there is an easy way of doing this (in my pre-Stata > life I made a lot of graphs in Excel and there is an option to tick > to show the graph scale in 100's, 1000's, etc). I don't want to > actually divide my y variable by 1000 as i still want the original > variable to be used in plotting the chart, but just want to show the > variable graphically in '000's - is there a way to do this in Stata? This is exactly what I would do. If you think carefully about it, an option that removes three zeros from the y-axis labels does exactly the same thing as dividing your y by 1000 and use that variable for the plot. * * 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/

**References**:**RE: st: number format in graph labels***From:*Gisella Young <gisellayoung@yahoo.com>

**RE: st: number format in graph labels***From:*Maarten buis <maartenbuis@yahoo.co.uk>

- Prev by Date:
**RE: st: Interpreting Poisson regression results with squared term** - Next by Date:
**RE: st: xtmelogit** - Previous by thread:
**RE: st: number format in graph labels** - Next by thread:
**Re: st: number format in graph labels** - Index(es):

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