Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単に言えば、外れ値に色を付けたいのですが、それらが特定のカテゴリに属している場合に限ります。
boxplot(mydata[,2:3], col=c("chartreuse","gold"), outcol="red")
ただし、 がで あるred 要素のみ。mydata[,1]M
red
mydata[,1]
M