Change annotation colors plotHeatmap
0
0
Entering edit mode
@simoneavesani22-24145
Last seen 3.5 years ago

Hi, I am new with Bioconductor and I have a question about plotHeatmap() function of scater package. I'm trying to run the example provided in the function guide, in particular I would like to change the columns annotation colors. I've tried with columnannotationcolors parameter but the result is not good. This is my code:

example_sce <- mockSCE() 
example_sce <- logNormCounts(example_sce)
colors <- list( Mutation_Status = c("positive" = "yellow", "negative" = "white"))

plotHeatmap(example_sce, features=rownames(example_sce)[1:10],
            colour_columns_by=c("Mutation_Status"), column_annotation_colors = colors[1])
scater plotHeatmap • 997 views
ADD COMMENT
0
Entering edit mode

In what sense is the result "not good"? How does the result differ from what you expect/desire?

ADD REPLY

Login before adding your answer.

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