使用pheatmap画热图报错
报错内容:
Error in hclust(d, method = method) :
外接函数调用时不能有NA/NaN/Inf(arg10)
此外: Warning messages:
1: In dist(mat, method = distance) : 强制改变过程中产生了NA
2: In dist(mat, method = distance) : 强制改变过程中产生了NA
问题详述:
笔者今天先学习了一下R语言和Rstudio的关系,并了解了RStudio是R语言的集成开发环境,一般的任务之间在RStudio中工作就行。本人用Rstudio导入的xls文件。
// 导入excel数据
> library(readxl)
> heapmap <- read_excel("heapmap.xlsx"