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.
スケールを色で示すレベルプロットから右のバーを削除しようとしています。グラフをトリミングしたり、それを印刷しないカスタム関数を作成したりする方法があるかどうかはわかりません。
以下は単純なレベルプロットです。
data(mtcars) cars.matrix <- as.matrix(mtcars[c(2:8)]) cars.corr <- cor(cars.matrix) levelplot(cars.corr)
colorkey=FALSElevelplot 関数に追加するだけです。
colorkey=FALSE
require(lattice) data(mtcars) cars.matrix <- as.matrix(mtcars[c(2:8)]) cars.corr <- cor(cars.matrix) levelplot(cars.corr, colorkey=FALSE)