Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: RE: Adding a text to a histogram


From   menteith <menteith@o2.pl>
To   "Cohen, Elan" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: RE: Adding a text to a histogram
Date   Fri, 24 May 2013 19:45:42 +0200

Witam!

W liście datowanym 24 maja 2013 (19:28:39) napisano:

> "... but I always get some errors".

> What you typed and what the error is would be extremely helpful.

> - Elan


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of menteith
> Sent: Friday, May 24, 2013 13:15
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Adding a text to a histogram

> Dear Stata Users,

> First of all I would like to to say hello to all participants.
> I  would  like  to  have a text at the top right corner of a histogram
> something   like this: http://i.imgur.com/wxwMdp0.jpg. The image of my
> own histogram is available at  http://i.imgur.com/YvgmZ5p.png
> I am using Stata 12.1 for Windows.
> As far as I know the text() command should do the trick as in examples
> at  http://www.survey-design.com.au/Stata%20Graphs.html  but  I always
> get some errors.

> Thanks for your help,
> Michal


> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/


Thank you for your interest.
I only managed to get the following command:

histogram longevity, bin(10) frequency fcolor(gs14) lcolor(white) normal normopts(lcolor(black)) ytitle(frequency) xtitle(longevity) ylabel(, angle(horizontal)) graphregion(color(white)) bgcolor(white) text(0 0 "MIN")  text(1 0 "Max")

And also any ideas on whether the histogram is clear would be of great
use for me.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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