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: missing grid line when defining ylabel for a bar graph


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: missing grid line when defining ylabel for a bar graph
Date   Fri, 19 Apr 2013 19:23:07 +0100

Use -yscale(r(., 10000))- as well to extend the axis range.

Nick
njcoxstata@gmail.com

On 19 April 2013 18:19, Jacob McDermott <jpmcd87@gmail.com> wrote:

> For an hbar graph I am extended the yaxis to correspond with the yaxis of
> another hbar. When I do this, the grid line for the final yaxis label does
> not appear. What am I missing? Is there an easy way to add one?
>
> For example:
> sysuse auto
> graph hbar (mean) price, over(rep78) ylabel(2000 4000 6000 8000 10000)
>
> the grid line at 10,000 does not appear.
*
*   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