Skip to content
Prev 247086 / 398506 Next

Problems creating a PNG file for a dendrogram: "Error in plot.window(...) : need finite 'xlim' values"

On Jan 11, 2011, at 7:01 PM, Richard Vlasimsky wrote:

            
I'm not sure the other two answers address the problems I found. When  
I try to set up a png file with the parameters width=4000,height=1000,  
on a Mac I intially got no plot with what is an otherwise valid  
command. But after successfully getting plotting to a png device the  
logjam appear broken. Try:

  graphics.off()
  dev.list()
#NULL
  png(filename="delme.png",width=4000,height=1000);
  plot(hc)
  dev.off()


(Of course I used dev.off() which you did not, but even adding  
dev.off() was not enough to get success, at least initially. I don't  
understand the suggestion to get rid of plot(hc) or the suggestion  
that hclust() returns NULL. That's certainly not how I read the help  
page and examples for hclust.)
David Winsemius, MD
West Hartford, CT