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

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?

Leave a Comment