我坚持使用此代码显示行和列的名称。而不是显示名称,而是显示数字。
data <- read.csv("/Users/apple/Documents/42_heatmap_new.csv", sep=",")
mat_data <- data.matrix(data[,2:ncol(data)])
heatmaply(mat_data, file="heatmaply_preformed.html", dendrogram = "none",
plot_method= c("plotly"), margins = c(150,250,30,150), grid_gap = 0.1,
show_grid = TRUE, xlab = "Antibiotics", ylab = "Clinical isolates",
main="Heatmap for drug resistance profile of 42 isolates", cexCol = 0.9,
cexRow = 1.0, lwid =c(4,1), RowV=NA, Colv=NA, lhei =c(2,2))