Did you see the warning that said
Warning message: In text.default(Pos[, 1], Pos[, 2], col = addCoef.col, labels = round((DAT - : semi-transparency is not supported on this device: reported only once per page
? That means that any colours you try to draw with semi-transparency (hint, hint: the alpha
settings in your addCoef.col
argument) won't work in a PostScript plot.
Eliminating the alpha
setting as follows (just changing the colour from rgb(0,0,0,alpha=0.6)
to rgb(0,0,0)
, although you might as well say "black"
) works fine on my system:
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()