Hello!

I am trying to plot more than one time series on one chart using quantmod's
functions. However, my ability to parse the source code is lacking...

For the life of me I can't figure out a way to use addPoints(). Simple
points() function breaks down due to na.omit() in chartSeries().

What is the "proper way" to do something like this?  I attached a simple
example below:

ix<-as.Date('2009-05-01')+seq(0,6)
dat_<-xts(cbind(sin(1:7),sin(1:7)),order.by=ix)
colnames(dat_)<-c('7x24','5x16')
dat_[2:3,'5x16']<-NA

# This works fine:
lineChart(dat_[,'7x24'])
points(as.vector(dat_[,'5x16']),col='red',type='p',pch=25)

# This does not:
lineChart(dat_[,'5x16'])
points(as.vector(dat_[,'7x24']),col='red',type='p',pch=25)

Thanks!
-- Eugene Tyurin.

	[[alternative HTML version deleted]]

