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
argument and so passes it on to the axis function.
The posting guide suggests that you provide a minimal reproducible example,
that helps us to help you.
In addition, after running the command that generates the error, run the
traceback() function and show us the output.
On Thu, Dec 27, 2012 at 11:14 AM, skpark <birdfire94@naver.com> wrote:
> 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" in the 2nd plot()
function, it
> works.
> But currently it's not working showing the following msg:
>
>
> Error in axis(1, at = xycoords$x, labels = FALSE, col =
"#BBBBBB", ...) :
> formal argument "col" matched by multiple actual arguments
>
> Could you let me know how to fix it ?
>
> BR,
> SK Park
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Gregory (Greg) L. Snow Ph.D.
538280@gmail.com
[[alternative HTML version deleted]]