Statalist The Stata Listserver


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

st: Adding lines to multiple histograms


From   "Joel J. Adamson" <[email protected]>
To   [email protected]
Subject   st: Adding lines to multiple histograms
Date   Tue, 23 Jan 2007 09:51:47 -0500

If you like books, I recommend the Visual Guide to Stata Graphics by
Michael Mitchell.  The book is basically a visual catalog of Stata
graphs, along with explanations of how to do what you need to do to
get the graph to look that way.

It's darn useful.

Joel

MA V writes:
 > Dear Statalist members,
 > I am drawing multiple histograms in one plot by using the "by" option.
 > e.g. hist age, by(city)
 > (note: I have 12 cities)
 > My question is the following: is it possible to add one vertical line to 
 > each individual histogram(note that these lines have different values for 
 > different cities, i.e. for different histograms)?
 > From searching in the statalist I concluded that this can be easily done in 
 > individual histograms.
 > Can it also be done when one uses  the "by" option? And, if so, how does one 
 > draw different lines in different histograms?
 > Thanks for your help.
 > MA
 > 
 > _________________________________________________________________
 > Valentine�s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping 
 > http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline
 > 
 > *
 > *   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/

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109




THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.



*
*   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