Entering edit mode
5.9 years ago
english.server
▴
300
Hi there! is it possible to construct Block-wise networks in WGCNA and then show a continuous dendrogram for all genes?
Cheers!
Thank you for your response. I enclose a reproducible code below:
I want to put the last 3 plot in one and i used
which seems correct to me but I still doubt I have coded correctly. perhaps somewhere I should use
or something like that.
Cheers!
You edited the post since I last looked. You mentioned there being only 1 module? If there was only 1 module, then your data may be quite 'flat'. How does it look on a histogram?
Is the issue that you just want to plot the dendrograms in the same plot window?
You are right. There are 3 modules in my simulated data. My issue is that visualizing block-wise networks sing plotDendroAndColors should be done for networks separately and one does not obtain a one-glance image of data.
Does passing
mfrow
topar()
not work for the purpose of plotting these? It usually works for hclust / dendrogram objects.For example:
Thank you for your time and comments. I cant get
par(mfrow=c(1,3))
working: (after appending this code to the code above):Yeh, the problem is that the
plotDendroAndColors()
is a WGCNA function that manipulates the usage ofpar()
, overriding your own usage ofpar()
andmfrow
.If you just type
plotDendroAndColors
at the command prompt, you can see the code for this function. You can either edit this code and override the function or plot the dendrograms with just:You do not obtain the colour bars that way, though.
Another way: Just output them on separate pages as a PDF and then merge them together into a single page using a PDF printer.
Thank you indeed very much. Very helpful comment.