Search
Question: Diffbind heatmap color change
0
gravatar for andrew.gehrke
3 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

ADD COMMENTlink modified 3 months ago • written 3 months ago by andrew.gehrke0
0
gravatar for Rory Stark
3 months ago by
Rory Stark2.1k
CRUK, Cambridge, UK
Rory Stark2.1k 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

ADD COMMENTlink written 3 months ago by Rory Stark2.1k
0
gravatar for andrew.gehrke
3 months ago by
andrew.gehrke0 wrote:

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

-Andrew

ADD COMMENTlink written 3 months ago by andrew.gehrke0
Please log in to add an answer.

Help
Access

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