bagplotというのを聞いた。aplpackパッケージでできるらしい。
library(aplpack) dat <- cbind(rnorm(100)+100, rnorm(100)+300) dat <- rbind(dat, c(105, 295)) plot(dat) bagplot(dat,factor=2.5,create.plot=TRUE,approx.limit=300, show.outlier=TRUE,show.looppoints=TRUE, show.bagpoints=TRUE,dkmethod=2, show.whiskers=TRUE,show.loophull=TRUE, show.baghull=TRUE,verbose=FALSE)
昔、siarという、生息している地域に寄って同位体元素が異なる含有率で含まれている餌を食べている動物の成分解析でなんやかんやできるパッケージを思い出したのでやってみる。