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

st: FW: Scatterplot Axis with non-ordinal range

From   "Nick Cox" <>
To   <>
Subject   st: FW: Scatterplot Axis with non-ordinal range
Date   Sun, 23 May 2004 16:15:45 +0100

Daniel Egan had difficulty sending this to Statalist. 


Heres one for graphing masters: 

How would I make a graph (scatterplot or connected) with the x-axis 
going from 19-23, then 0-7. I am tracking hourly outcomes overnight, 
and so want to be able to graph from 1900 (7pm) to 0700 (7 am). 
My x (hour) values range from 0 to 23. 

As it stands, my command looks like:

twoway (connected aarhc hour if createdby=="ba") 
(connected aarhc hour if createdby=="de") 
(connected aarhc hour if createdby=="kl") 
(connected aarhc hour if createdby=="aw") 
(connected aarhc hour if createdby=="lt") 
(connected aarhc hour if createdby=="is") 
if sd==0, legend(position(12) ring(0))

so if possible, I would like to be able to include the range option 
in the "twoway (...)(...) , range(??)" option. 

The range option does not seem to support a numlist type format, 
i.e. I have tried 

r(19 20 21 22 23 0 1 .....) ...

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index