I used the R list below and got a very nice heatmap :
png( "test-8.png", width =800 , height =750 ) heatmap(1-cor(df),distfun=function(x){as.dist(x)},symm=F,Rowv=NULL, Colv=NULL) dev.off()
But it was released with a fairly low resolution. After searching on Google, I found a possible solution:
png( "test-8.png", width =800 , height =750,res=600 ) heatmap(1-cor(df),distfun=function(x){as.dist(x)},symm=F,Rowv=NULL, Colv=NULL) dev.off()
Unfortunately, I received an error after executing the code:
Error in par(op) : invalid value specified for graphical parameter "pin" Calls: heatmap -> par Execution halted
How can i do this? Any suggestion would be appreciated.
source share