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.
我正在尝试从 levelplot 中删除右栏,即表示颜色比例的栏。我不知道是否有某种方法可以裁剪图形或创建不打印的自定义函数。
这是一个简单的水平图:
data(mtcars) cars.matrix <- as.matrix(mtcars[c(2:8)]) cars.corr <- cor(cars.matrix) levelplot(cars.corr)
您只需添加colorkey=FALSE到 levelplot 函数。
colorkey=FALSE
require(lattice) data(mtcars) cars.matrix <- as.matrix(mtcars[c(2:8)]) cars.corr <- cor(cars.matrix) levelplot(cars.corr, colorkey=FALSE)