[R] Help on conditional selection of data.frame data...

2013-02-04 Thread skpark
Hello, I have trouble with using data.frame data. 1. I loaded data using the following: ff <- read.table("E:/R/VM/matrix.txt", header=T) The data I used is attached. I want to use at least 2 conditions for selecting of data. But I failed. It works. -> fff <- ff[ff$HG == "GUEST",] fff

[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"

[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