colorRampPalette() and heat map annotation

Hello,
I have a heat map annotates as follows :

annotation <- data.frame(EGFR_group = c("up","down","down","up","down"), miR_group = c("down","up","up","down","down"), miR_values = c(0.05, 5,4,0.02,0.001))
rownames(annotation) <- c("Sample1", "Sample2", "Sample3", "Sample4", "Sample5")
my_colour <- list(
EGFR_group = c(up = "red", down = "blue"),
miR_group =c(up = "red", down = "blue")
)

and to create my heatmap it works with

pheatmap(object_pheatmap,
annotation_col = annotation,
annotation_colors = my_colour)

However, I want to create an heatmap annotation with a colorramppalette for miR_values from blue for the lowest value to red for the highest.
Thanks for help

Best

Simon

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.