how to save TOMplot into a pdf/png file
1
0
Entering edit mode
2.4 years ago
Quak ▴ 490

I am using WGCNA library and wonder how I can write the result of TOMplot into a file which format and function is appropriate. I have used pdf command and dev.off() but the resulting file was empty.

R WGCNA • 1.2k views
ADD COMMENT
0
Entering edit mode

can you post the chunk of code used to export the TOMplot as pdf file?

ADD REPLY
0
Entering edit mode

Hi,

I'm not familiar with the TOMplot() function, but based on the online description it seems to return an heatmap (see link).

Does the function TOMplot() returns a plot in R without using pdf() and dev.off()? If so, then the problem seems related with the way that you're saving the result. If not, then the problem is the input that you're giving to the function.

You may want to try the following:

pdf("heatmap.pdf")
print(
TOMplot() # please, give the arguments and inputs inside the TOMplot function which I don't know 
)
dev.off()

Let me know if this worked,

António

ADD REPLY
0
Entering edit mode
2.4 years ago
Quak ▴ 490

I used png instead of pdf and increased the size of the page and worked out

ADD COMMENT

Login before adding your answer.

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