Question: (Closed) How to change colors in heatmap according to the values?
gravatar for sharmatina189059
20 months ago by
United States
sharmatina18905940 wrote:

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.


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 • 964 views
ADD COMMENTlink modified 20 months ago by zx87549.6k • written 20 months ago by sharmatina18905940

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.


ADD REPLYlink written 20 months ago by ATpoint38k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 932 users visited in the last hour