!!!plot() !!軸のラベル:オプションで付ける plot(data, xlab="x軸のラベル", ylab="y軸のラベル") > plot(kimatsu, xlab="国語", ylab="数学") !! *ひとつだけ plot(A) *二種類 plot(A,B) !!データを並べ替えてから <>() A sort(A) *ひとつだけ plot(sort(A)) *二種類 plot(sort(A),(B)) *色を変える オプション col="色の名前" plot(sort(A), sort(B), col= c("green","red")) **どんな色があるか <> !!データポイントにラベルをつける !番号だけ *オプションで、type="n"でデータポイントを明示しないで、おいて、 *textで指定すると、数字が並ぶ。 plot(bcdata$MDD, bcdata$MHD, type="n") text(x=bcdata$MDD, y=bcdata$MHD) !ラベルをデータポイントの位置に plot(bcdata$MDD, bcdata$MHD, type="n") text(x=bcdata$MDD, y=bcdata$MHD, labels=bcdata$Genre) !項目の見出しをつける *maptools パッケージが必要 *textの代わりに、pointLabelを使う。 pointLabel(x=bcdata$MDD, y=bcdata$MHD, labels=bcdata$Genre)