Statalist


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

Re: st: Re: Controlling display format for -addlabel- option on -histogram-


From   Ronan Conroy <[email protected]>
To   [email protected]
Subject   Re: st: Re: Controlling display format for -addlabel- option on -histogram-
Date   Mon, 11 Feb 2008 13:21:55 +0000

On 11 Feb 2008, at 13:01, Michael Blasnik wrote:

You can use the slightly documented (see help histogram, last sentence under Bar labels section) option addlabopts with the yvarformat suboption. For example, to get one decimal place :

histogram rep78, width(1) addlabel addlabopts(yvarformat(%4.1f))
Fascinating. I had followed the hyperlink in the help file to the help on -marker_label_options-, which makes no mention of - yvarformat-, without noticing that in the main help for -histogram- it states that more options than are normally accepted by - marker_label_options- are available, including the reference to - yvarformat-.

Perhaps, since -histogram- clearly has its own armamentarium of marker label options, they might be worth documenting in one place.

P Before printing, think about the environment
=================================
Ronan Conroy
[email protected]
Royal College of Surgeons in Ireland
Epidemiology Department,
120 St Stephen's Green, Dublin 2, Ireland
+353 (0)1 402 2431
+353 (0)87 799 97 95
http://www.flickr.com/photos/ronanconroy/sets/72157601895416740/

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