Re: [R] Regarding multiple axes in plots..

2012-12-27 Thread Greg Snow
The idiom of 'par(new=TRUE)' should be hidden, it is never the first thing that you should try and is only rarely needed and as you have seen often causes more problems than it helps. First you should ask yourself if using 2 different coordinate systems in the same plot is the best approach, you c

[R] Regarding multiple axes in plots..

2012-12-27 Thread skpark
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-draw