Search
Question: Diffbind heatmap color change
0
13 months ago by
andrew.gehrke0 wrote:

Hi Rory,

Sorry for the mundane question, but I think I used to be able to change the color of heatmaps in Diffbind using col = , and now that doesnt seem to work,  Now I get the following error:

> plot(samples_final, col ="blues")
Error in dba.plotHeatmap(x, ...) :
argument 2 matches multiple formal arguments

Keep getting this error no matter what color variation I try.   If you have a quick second to help that would be much appreciated!

Thanks,

-Andrew

modified 13 months ago • written 13 months ago by andrew.gehrke0
0
13 months ago by
Rory Stark2.5k
CRUK, Cambridge, UK
Rory Stark2.5k wrote:

Hi Andrew-

The heatmap plotting code changed a while back.

Try setting colScheme="Blues". This will set the color scheme using RColorBrewer:

col = colorRampPalette(brewer.pal(9,"Blues"))(256)

You can also set colScheme to any vector of colors, which will be used for the heatmap as if you passed a value directly for col.

Cheers-

Rory

0
13 months ago by
andrew.gehrke0 wrote:

As always, thank you very much for your help and prompt response!!

-Andrew