How to add data to secondary axis in chartSeries

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add data to secondary axis in chartSeries

Robert A'gata
Hi,

I'm wondering if it is possible to add data to secondary axis in the
main panel in chartSeries. For example, I have a signal that is
correlated with the price but of different scale. I'm wondering if
there's any possibility at all? And how to do it?

Secondly, I'm wondering how to delete the "Last" legend that shows up
in the main panel? Thank you.

Bests,

Robert

_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
Reply | Threaded
Open this post in threaded view
|

Re: How to add data to secondary axis in chartSeries

braverock
chart_Series can do this, but not the older chartSeries.


--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock

On Fri, 2011-04-29 at 21:00 -0400, Robert A'gata wrote:

> Hi,
>
> I'm wondering if it is possible to add data to secondary axis in the
> main panel in chartSeries. For example, I have a signal that is
> correlated with the price but of different scale. I'm wondering if
> there's any possibility at all? And how to do it?
>
> Secondly, I'm wondering how to delete the "Last" legend that shows up
> in the main panel? Thank you.
>
> Bests,
>
> Robert

_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
Reply | Threaded
Open this post in threaded view
|

Re: How to add data to secondary axis in chartSeries

Arun.stat
In reply to this post by Robert A'gata
Hi R_help Help, think again to put a Secondary axis in you plot window. It is completely meaningless. It seems that there are 2 Suns in the sky. Ofcourse there are many Binary star systems in the Universe (http://en.wikipedia.org/wiki/Binary_star), but life doesn't exist there, right? (just due to inhospitable weather!)

You may better consider to plot your series in Logarithmic scale. Another good possibility could be to change the base of both series to some meaningful number, may be 100, and then plot the joint movement of your series (on same scale).

Thanks and regards,
_____________________________________________________

Arun Kumar Saha, FRM
QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST
Visit me at: http://in.linkedin.com/in/ArunFRM
_____________________________________________________