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

From |
Richard Ochmann <rochmann@diw.de> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: help with a histogram by year |

Date |
Tue, 10 Mar 2009 10:14:45 +0100 |

... alternatively to Martin's approach you could write your titles of the subgraphs in the value labels of the by-variable: *** sysuse auto, clear gen year = cond(runiform()<0.3,1978, cond(runiform()<0.6,1979,1980)) label define yearlab 1978 "For year 1978" 1979 "For year 1979" 1980 "For year 1980", modify label values year yearlab histogram price, by(year, note("")) *** best, rich "F. Gao" <gaofaye@gmail.com> Gesendet von: owner-statalist@hsphsun2.harvard.edu 09.03.2009 20:09 Bitte antworten an statalist@hsphsun2.harvard.edu An statalist@hsphsun2.harvard.edu Kopie Thema st: help with a histogram by year Dear members, I am trying to get a histogram by year. I use the following command hist y, by(year,graphregion(color(white))) freq Two things annoy me so far. 1. I do not know how to get rid of the note on the lower left part of the graph "Graphs by year". I tried adding note(`" "') at the end of the command, with no effect 2. I would like to add a small title under each graph for each year, such as "For year 1990", "For year 1991", so that I could replace the title added by stata automatically on the top of each graph, like "1990", "1991". Any suggestions would be greatly appreciated. Thanks! Sincerely, Faye * * 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/ * * 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/

**Follow-Ups**:**RE: st: help with a histogram by year***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**Re: st: help with a histogram by year***From:*Ronan Conroy <rconroy@rcsi.ie>

**References**:**st: help with a histogram by year***From:*"F. Gao" <gaofaye@gmail.com>

- Prev by Date:
**Re: st: corcor** - Next by Date:
**st: psmatch2 and the options ATE and COM** - Previous by thread:
**st: Re: Re: help with a histogram by year** - Next by thread:
**Re: st: help with a histogram by year** - Index(es):

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