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]

st: RE: Axis with scatter plots


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Axis with scatter plots
Date   Wed, 16 Nov 2011 15:47:11 +0000

This is asked quite frequently. The short answer is No. 

Stata's bias is that this would often produce an awful, awful mess. 

A longer answer is that you can draw your own alternative axis lines using -xli(0)- and -yli(0)-. 

Re-positioning axis ticks, labels and titles would be more work and require at least some degree of fudge. 

If you want the first, but not the second, then this answer will be positive for you. For some more discussion, see 

SJ-9-4  gr0043  . . . . . . . . . .  Stata tip 82: Grounds for grids on graphs
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q4/09   SJ 9(4):648--651                                 (no commands)
        tip on when a grid within a graph is appropriate

Nick 
n.j.cox@durham.ac.uk 

Andrew Stoddart

Does anyone know if/how it is possible to get the axis of a scatter  
plot to appear within the graph when the plotted points cross zero?

Ie:

                      |
                   10 |
                      |  x    x
      -----------x-------------x------
      -10       x   0 |    x       10
                      |
                  -10 |


Rather than

10  |
     |                    x     x
0   |           x               x
     |            x         x
-10 |_____________________________________
      -10               0             10


version: stata 12 IC

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