I am trying to reproduce the results of the R tutorial of the WGCNA package. In section I number 5, when generating the heatmap it is quite similar to the one provided by the pdf but the colours of the heatmap differ from the document. Is it possible to change it?

I attach the image together with the code used.

[image obtained

Image Obtained

image of tutorial

Image of tutorial

nSelect = 400
select = sample(nGenes, size = nSelect);
selectTOM = dissTOM[select, select];
selectTree = hclust(as.dist(selectTOM), method = "average")
selectColors = moduleColors[select];
plotDiss = selectTOM^7;
diag(plotDiss) = NA;
TOMplot(plotDiss, selectTree, selectColors, main = "Network heatmap plot, selected genes")
  • $\begingroup$ Could you please provide a link to the WGCNA tutorial? $\endgroup$
    – gringer
    Jul 4 at 4:18


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.