Entering edit mode
5.3 years ago
sharmatina189059
▴
110
Dear all
I am trying to generate a heatmap having values 0, 1, 2, 3 . I need different colors for these values and 3 has to be transparent. I am using below mentioned code with which heatmap is generated well but i am unable to change color pattern.
Please help.
library(heatmaply)
heatmaply(mat_data, file="heatmaply_preformed.html", dendrogram = "none",
plot_method= c("plotly"), margins = c(150,220,30,150), grid_gap = 0.1,
show_grid = TRUE, xlab = "Antibiotics", ylab = "Clinical isolates",
main="Heat Map for drug resistance profile of 40 clinical isolates",
cexCol = 1, cexRow = 0.9, lwid =c(1,1), lhei =c(2,2))