Puedo creer que el mapa de calor está, por lo menos, tomando mucho tiempo, porque heatmap
hace muchas cosas extravagantes que requieren más tiempo y memoria. Usando dat
del ejemplo de @ bill_080:
## basic command: 66 seconds
t0 <- system.time(heatmap(dat))
## don't reorder rows & columns: 43 seconds
t1 <- system.time(heatmap(dat,Rowv=NA))
## remove most fancy stuff (from ?heatmap): 14 seconds
t2 <- system.time(heatmap(dat, Rowv = NA, Colv = NA, scale="column",
main = "heatmap(*, NA, NA) ~= image(t(x))"))
## image only: 13 seconds
t3 <- system.time(image(dat))
## image using raster capability in R 2.13.0: 1.2 seconds
t4 <- system.time(image(dat,useRaster=TRUE))
Es posible que desee considerar lo que realmente quiere salir del mapa de calor - es decir, ¿necesita el dendrograma de fantasía/reordenar cosas?
Muchas respuestas sobre heatmap. http://stackoverflow.com/questions/3789549/display-a-matrix-including-the-values-as-a-heatmap http://stackoverflow.com/questions/5035491/how-to-put-black-borders -in-heatmap-in-r Intenta buscar '[r] heatmap'. –
Por favor, copie y pegue el error exacto. 1000x1000 no debe producir una matriz de distancia demasiado grande para R. – Vince
@Roman, pero esta no es ninguna de esas preguntas ... – Vince