我正在使用levelplot(lattice)在R中创建相关热图。
我想要在方框之间有边框,但是不要在外面,因为它会干扰绘图边界。
如何从方框中删除外部边框?
以下是我的代码:
这是它的样子...我不喜欢边缘的双线。 编辑:这里有一个可重现的例子:
以下是我的代码:
levelplot(matrix, border="black",
colorkey=list(height=.25, space="right", at=seq(-1, 1, .25), cuts=7),
scales=list(y=(list(cex=1)), tck = c(1,0), x=list(cex=1, rot=90)),
main="Leaf Correlations", xlab="", ylab="",
col.regions=scalebluered)
这是它的样子...我不喜欢边缘的双线。 编辑:这里有一个可重现的例子:
data(mtcars)
cars.matrix <- as.matrix(mtcars[c(2:8)])
cars.corr <- cor(cars.matrix)
levelplot(cars.corr, border="black", colorkey=list(height=.25, space="right",
at=seq(-1, 1, .25), cuts=7),
scales=list(y=(list(cex=1)), tck = c(1,0), x=list(cex=1, rot=90)),
xlab="", ylab="")
par.settings = list(axis.line = list(lwd = 0)
这样的设置,或者也许可以使用col = "white"
。 - joran