Quantcast

question on charting

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

question on charting

Gordon Erlebacher
Hi,

I would like to plot two simples in a single frame. I found a previous
message:


library(quantmod)
getSymbols(c("SPY","DIA"))

# This will put 2 price series on a chart
thm <- chart_theme()
thm$col$line.col <- 'lightblue'
chart_Series(Cl(SPY),theme=thm)
add_Series(Cl(DIA),on=1)

--


But these is still, a single y axis on the chart. I would like one y
axis on the left side, and another y axis on the right side. Surely
that must be possible? In fact, why shouldn't it be possible to plot 3
series superimposed, each with its own y axis label?


To get a clearer indication of the problem, please try to overlay AA with AAPL.


 Thanks,

    gordon

        [[alternative HTML version deleted]]

_______________________________________________
[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.
Loading...