Error while creating heatmaps - NA/NaN/Inf in foreign function call (arg 11)

Try d3heatmap(tbl_ready,Rowv = FALSE, Colv=FALSE)

The automatic reordering of rows and columns was causing an issue for me too, disabling it fixed the problem


I too was unable to reproduce the error with the sample data provided above, but when I did

tbl_ready[1,1] <- Inf

and ran it again, I got the same error. This means there is likely an infinite value in the matrix. Are you sure that sum(is.infinite(tbl_ready)) returns 0 after your cleaning?

Tags:

R

Nan

Na

Gplots