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: Invisible axis


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Invisible axis
Date   Tue, 11 May 2010 15:14:03 +0100

I think Ricardo is not exploring very much. 

Two concrete suggestions: 

1. -plotregion(lcolor(none))- still is available. 

. graph bar mpg weight, plotregion(lcolor(none)) 

2. If that's not sufficient, a fake -over()- category is one easy fudge:


. gen one = 1

. graph bar mpg weight, plotregion(lcolor(none)) over(one, axis(off))

I'll happily hear of more elegant command language alternatives to 2. 

Nick 
[email protected] 

Ricardo Ovaldia

I think Nick is missing the point. I am not using the over() option, in
which case it would be easy to eliminate the x-axis. I have a series of
variable that are to be plotted on the same bar plot. Something like my
previous example:

. graph bar  price  weight ...


--- On Tue, 5/11/10, Nick Cox <[email protected]> wrote:

> But that's not necessary. 
> 
> sysuse auto 
> graph bar mpg, over(foreign)
> graph bar mpg, over(foreign, axis(off)) 
> graph bar mpg, over(foreign, axis(off))
> plotregion(lcolor(none))
> 
> shows that you don't _need_ to use the editor or rewrite as
> -twoway- for this purpose. 
> 

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index