Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: origo placement


From   "Svend Juul" <[email protected]>
To   <[email protected]>
Subject   RE: st: origo placement
Date   Mon, 30 May 2005 14:29:41 +0200

Ren� wants the x- and y-axes to cross at "origo". That is a 
reasonable wish in many situations.

To include 0,0 in the axes:

. twoway scatter mpg weight , xlabel(0(1000)5000) ylabel(0(10)40)

Now 0,0 is included, but you might want axes to cross 
exactly at 0,0. Use the plotregion(margin()) option:

. twoway scatter mpg weight , xlabel(0(1000)5000) ylabel(0(10)40) plotregion(margin(l=0 b=0))

Also, the xscale(range()) option may be useful to you.

Hope this helps,

Svend

__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796
Email: [email protected]
__________________________________________ 

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