Re: [R] Help in using col in plot()..

2012-12-27 Thread Greg Snow
It would help if we had some idea what data_min1$macdhist actually is. I would not expect to see that error if it is a simple numeric vector, so it probably has a class of some sort which causes the plot command to call a specific method (but we don't know which one) which may not have a col argum

[R] Help in using col in plot()..

2012-12-27 Thread skpark
Hello, I have problem with using color. plot(data_min1$macd,col='black',main="1 min MACD",type="l") lines(data_min1$macdsig,col="red") par(new=T) plot(data_min1$macdhist,col=data_min3$histcol,type="h",main="") axis(4,col='black') par(new=F) When I remove ",col=data_min3$histcol"