1

プロットされたaがcorrplotあり、それを.epsファイル形式にしたい。問題は、.epsファイルでは、円の内側の数字が消えてしまうことです。それらを取り戻すためのパラメータはありますか?

library(corrplot)
test <- structure(c(100, 41.6411042944785, 69.6478873239437, 99.35956084172, 
 100, 99.9295774647887, 90.4849039341263, 54.409509202454, 100
 ), .Dim = c(3L, 3L), .Dimnames = list(c("x1", "x2", "x3"), c("x1", 
 "x2", "x3")))

.eps形式なし:(うまく機能します)

corrplot(round(test),tl.cex=1.5,title="test", method="circle",is.corr=FALSE,type="full",
    cl.lim=c(0,100),cl.cex=2,addgrid.col="blue",addshade="positive",col=col1, addCoef.col = rgb(0,0,0, alpha =0.6), mar=c(0,0,1,0), diag= FALSE)

.eps形式:

postscript("test.eps", height=8, width=8, paper="special", family="Helvetica", fonts="Helvetica", horizontal=FALSE, onefile=FALSE)
corrplot(round(test),tl.cex=1.5,title="test", method="circle",is.corr=FALSE,type="full",
         cl.lim=c(0,100),cl.cex=2,addgrid.col="blue",addshade="positive",col=col1, addCoef.col = rgb(0,0,0, alpha =0.6), mar=c(0,0,1,0), diag= FALSE)
dev.off()
4

1 に答える 1

1

あなたは言った警告を見ましたか

警告メッセージ:text.default(Pos [、1]、Pos [、2]、col = addCoef.col、labels = round((DAT-:このデバイスでは半透明性はサポートされていません:ページごとに1回だけ報告されます

?つまり、半透明で描画しようとする色(ヒント、ヒント:引数のalpha設定addCoef.col)は、PostScriptプロットでは機能しません。

次のように設定を削除するalphaと(色をからrgb(0,0,0,alpha=0.6)に変更するだけrgb(0,0,0)ですが、言うかもしれませんが"black")、私のシステムでは正常に機能します。

library("corrplot")
col1 <- "green"  ## you didn't tell us what col1 was so I made something up
postscript("test.eps", height=8, width=8, paper="special",
    family="Helvetica", fonts="Helvetica", horizontal=FALSE, onefile=FALSE)
corrplot(round(test),tl.cex=1.5,title="test", method="circle",
    is.corr=FALSE,type="full",
    cl.lim=c(0,100),cl.cex=2,
    addgrid.col="blue",addshade="positive",
    col=col1, addCoef.col = rgb(0,0,0), mar=c(0,0,1,0), diag= FALSE)
dev.off()
于 2013-02-28T15:14:40.563 に答える