Off topic:How to change colors in heatmap according to the values?
0
0
Entering edit mode
5.3 years ago

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))
R • 1.7k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2555 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6