我的数据集具有像这样的行和列:
。
我想绘制一个带有树状图的热图,以显示行注释(此处名称为Row)和列注释(此处称为Col)..数据集称为“数据”:
我已经使用了代码
pheatmap(Data, color = colorRampPalette(c("White", "Black"))(50),
border_color = "grey70", legend_breaks = cbind(1,0),
legend_labels = cbind("Present", "Absent"), annotation_row = Row,
annotation_col = Col, cellwidth = 20)
我遇到了错误:
"In strwidth(t, units = "in", cex = fontsize_col/fontsize)
font width unknown for character 0xd" and "In grid.Call(C_textBounds,
as.graphicsAnnot(x$label), x$x, x$y, : font width unknown for character 0xd"
任何人都可以帮助我解决这个问题吗?