无处可去

Ali*_*Ali 2 plot r

我正在使用plotMDS()包的功能,limma通过plot()R 的简单格式绘制图,并且还返回绘图上的点的位置作为输出.我想用输出plotMDS()来制作我自己的美丽情节.

有没有办法在plotMDS()没有真正产生情节的情况下运行?我之所以这么说的原因是我已经将输出转换为PDF文件,我不希望原始的情节出现在plotMDS()那里!

Ali*_*Ali 5

谢谢@BenBolker,可以这样做:

pdf("Some file")
...
dev.new() # Putting new plots to nowhere
mds <- plotMDS(data)
dev.off() # Restoring new plots to the PDF file
plot(...) # Making the desired plot using mds
...
dev.off() # Closing PDF file
Run Code Online (Sandbox Code Playgroud)