1
$\begingroup$

I have created a heat map using WGCNA using R. But the heat map command is not showing the plot and there is no error. I have a large number of modules and traits. I am not sure if that is the reason. But I tried making it in HPC R and it still is not showing any result plot. Thank you!

$\endgroup$
1
  • 1
    $\begingroup$ Hi @Jessica you could post the code you have used, however the answers below do appear to have resolved the issue. $\endgroup$
    – M__
    Commented Jul 27, 2020 at 21:23

2 Answers 2

1
$\begingroup$

The plot is probably being drawn to a device that you cannot view on a cluster. If you're using the plotNetworkHeatmap function, say, try something like this:

png("plot.png", ...) #specify height, width, etc
plotNetworkHeatmap(....) #call your function
dev.off()

Now, scp the plot.png file over to your local machine to view the plot.

$\endgroup$
1
$\begingroup$

If you've copied over from some of the WGNCA tutorials you might have additionally copied the sizeGrWindow command - it's caused some of my plots to disappear.

ie:

sizeGrWindow(9,6)  # delete this line
plot(...)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.