【发布时间】:2014-12-04 17:45:31
【问题描述】:
我有一个包含 ~750k 元素的矩阵,我想用 corrplot 绘制它。它绘制它没有错误,但它产生的情节是空的,只有色标。使用命令行 R 时,它会在“Quartz 2”窗口中显示绘图,但几秒钟后就会消失。是什么赋予了?
library("corrplot")
mat <- matrix(data = rexp(200, rate = 10), nrow = 800, ncol = 800)
col1 <- colorRampPalette(c("#00007f", "#00007f", "#00007f", "#00007f", "blue", "cyan", "#00cc00", "yellow", "#FF7F00", "red"), interpolate = "linear", alpha = TRUE)
corrplot(splotMat, is.corr = FALSE, method = "color", tl.pos = "n", col = col1(100), cl.lim = c(-0.14, 1))
【问题讨论】:
-
请给出一个最小的工作示例,例如描述here。首先,提供一小部分矩阵会有所帮助,例如
dput(Mat[1:20,1:20])。 -
好的。我已经更新了代码。谢谢。
标签: r plot r-corrplot