changing heatmap color using heatmap.3
1
0
Entering edit mode
9.6 years ago
robjohn7000 ▴ 110

Hi,

Does anyone know how to change the heatmap color in heatmap.3

I want to change color.FUN = gplots::bluered to something different. So far I have tried heat.colors(3) and col = colorRampPalette(c("lightyellow", "red")) without any success.

Any guesses?

r heatmap • 4.6k views
ADD COMMENT
1
Entering edit mode
9.6 years ago
arnstrm ★ 1.9k

Try this:

# colorRampPalette is in the RColorBrewer package.  This creates a colour palette that shades from light yellow to red in RGB space with 100 unique colours
scaleyellowred <- colorRampPalette(c("lightyellow", "red"), space = "rgb")(100)

Source

ADD COMMENT
0
Entering edit mode

Thanks @arnstrm. Unfortunately, that still didn't work.

ADD REPLY

Login before adding your answer.

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