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


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Invisible axis
Date   Tue, 11 May 2010 07:36:14 -0500

If you want it to look like the original example:

   graph bar  price  weight, ysc(off)  showyvar legend(off)

you could do something like:
  sysuse auto,clear
  gen foo =1
  graph bar price weight, over(foo, axis(off))
graphregion(margin(b+5))  blabel(name, pos(base) size(*1.1) gap(*-3) )
legend(off) yscal(off)


Scott


On Tue, May 11, 2010 at 7:05 AM, Nick Cox <n.j.cox@durham.ac.uk> 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.
>
> Nick
> n.j.cox@durham.ac.uk
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index