This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to change the heatmap color of ConsensusClusterPlus

R package "ConsensusClusterPlus " can be used to cluster samples. but how to change the heatmap colors, i can not find the setting.

results = ConsensusClusterPlus(d,maxK=6,reps=50,pItem=0.8,pFeature=1,title=title,clusterAlg="hc",distance="pearson",seed=1262118388.71279,plot="png")

thank you for your help!

rna-seq gene

I have an another question, how to display the sample name as colnames or rownames when we plot heatmap? thank you very much!

Hi @Zhao03, Did you figured out the answer you were looking for displaying the sample names as column names or row names? Please share your experience.

Thanks

I can not display sample names as column names. but results[[2]][["consensusClass"]] and results[[2]][["consensusTree"]]["order"] can help us to find out which samples in clusters

Hi @zhao03, I am using the ConsensusClusterPlus package but I don't know how to view the plots. can you help?

1 answer

sorry , i forget to read manual . tmyPal=c("blue","red")) it can change colors

Log in to answer this question.