Diffbind heatmap color change
2
0
Entering edit mode
@andrewgehrke-12761
Last seen 6.9 years ago

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

diffbind rory stark • 2.3k views
ADD COMMENT
0
Entering edit mode
Rory Stark ★ 5.2k
@rory-stark-5741
Last seen 28 days ago
Cambridge, UK

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

ADD COMMENT
0
Entering edit mode
@andrewgehrke-12761
Last seen 6.9 years ago

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

-Andrew

ADD COMMENT

Login before adding your answer.

Traffic: 748 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