Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

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


From   menteith <[email protected]>
To   "Cohen, Elan" <[email protected]>
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: [email protected]
> [mailto:[email protected]] On Behalf Of menteith
> Sent: Friday, May 24, 2013 13:15
> To: [email protected]
> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index