热图出现Error: 'from' must be a finite number,求解答!

运行pheatmap(matrix)可以显示热图,但运行以下出现error:

pheatmap(matrix,
         scale="row"
         color = colorRampPalette(c("blue", "white","red" ))(1000), 
         annotation_col = annotation_col,
         annotation_colors = ann_colors, 
         fontsize_col = 10, 
         cluster_rows = T,
         cluster_cols = F,
         show_rownames =T, 
         show_colnames = F,
         fontsize = 10
         cellwidth=10,
         cellheight=10,
         main = "Heatmap") 

Error in seq.int(rx[1L], rx[2L], length.out = nb) :
'from' must be a finite number
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf