覚書coplot

今、1行目にヘッダーがあるエクセルファイルがn列あって、そのn(n-1)/2組合せのすべてでcoplotを並べる必要があるとする。
タブ区切りファイル "sample.txt"に保存する。

TypeA	TypeB	TypeC
0.891279841	0.648418201	0.821788067
0.734244145	0.646355196	0.841198278
0.645916427	0.585378928	1
0.501360777	0.62923452	0.314878641
0.013318325	0.021097972	0.153127451
0.204730477	0.314878641	0.260068617
0.404832464	1	0.190430264
1	1	1
0.88091227	0.687013344	0.337657414

こんな、3列、データが10行、プラスヘッダー行のファイルとする
Rから

sampleTable<-read.table(file="sample.txt",header=TRUE)

で読み込む。

plot(sampleTable[1:3])

補遺
sampleTableの第2,4,5,6列のみでcoplotしたいときは

list<-c(2,4,5,6)
plot(sampleTable[list])

終わり。