Displaying 3 results from an estimated 3 matches for "macdhist".
2012 Dec 27
1
Help in using col in plot()..
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...
2000 Feb 28
1
Parser Bug Somewhere.... (PR#460)
...ma12
dataset$MACD_slow <- EMA(dataset$MACD_fast,9)
dataset$MACD_hist <- dataset$MACD_fast - dataset$MACD_slow # This line doesnt
work!!!
But... if I does work if I do the following
dataset$MACDfast <- dataset$ema26 - dataset$ema12
dataset$MACDslow <- EMA(dataset$MACDfast,9)
dataset$MACDhist <- dataset$MACDfast - dataset$MACDslow
Something seems wrong if you have an underscore in the dataname. I think
this is a valid name and shouldnt need to be escaped inside of "".
--John Cavanaugh
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-dev...
2012 Dec 27
1
Regarding multiple axes in plots..
Hello,
I'd like to draw 2 plots in one graph.
Here is my code:
plot(data_min1$macd,main="1 min MACD",type="l")
lines(data_min1$macdsig,col="red")
par(new=T)
plot(data_min1$macdhist,type="h",main="")
axis(4)
par(new=F)
It seems it works.
But left axes of two graphs are over-drawn.
Could you let me know how to fix it ?
BR,
SK Park
[[alternative HTML version deleted]]