How to change colors in heatmap according to the values?
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))
• 1,916 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello sharmatina189059!
We believe that this post does not fit the main topic of this site.
Not a bioinformatics-related question. Please search google first, and if this does not help, try StackExchange.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!