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

RE: st: twoway rspike - with marker labels placed in the center of the spike


From   "Donald Spady" <[email protected]>
To   <[email protected]>
Subject   RE: st: twoway rspike - with marker labels placed in the center of the spike
Date   Wed, 27 Jul 2005 13:02:13 -0600

On a similar vein, can you rotate the graph so that the spikes go
horizontally rather than vertically.  This would allow for a series of
labels on the 'Y' axis corresponding to each spike.
Don Spady

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, July 27, 2005 12:22 PM
To: [email protected]
Subject: Re: st: twoway rspike - with marker labels placed in the center of
the spike

You can place a scatter plot with marker labels over the spike plot.  
For example:

sysuse sp500, clear

keep in 1/10

gen mean = (high + low)/2

twoway rspike high low date  /// 
|| scatter mean date, msymbol(none) mlabel(date) mlabposition(0) legend
(off)


Hope this helps,
Scott



----- Original Message -----
From: "Stevenson, John" <[email protected]>
Date: Wednesday, July 27, 2005 1:03 pm
Subject: st: twoway rspike - with marker labels placed in the center 
of the spike

> Does anyone know how to create spike plots with a marker label 
> centeredon the midpoint of the spikes, using for example fips codes
> 
> Something like
> 
> |                                  |
> |                         |        |           
> |               |         VA      AK
> |               CA        |        |
> |               |                  |
> |____________________________________
> 
> Only with the fips codes rotated 90 degrees 
> Regards,
> John
> 

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


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