作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 limma
包的函数 plotMDS()
,它通过 R 的简单 plot()
格式绘制图,并且还返回图上点的位置作为输出。我想使用 plotMDS()
的输出来制作我自己的美丽情节。
有什么方法可以运行 plotMDS()
而不真正生成它的绘图?我这样问的原因是我已经将输出转换为 PDF 文件并且我不希望 plotMDS()
的原始图在那里!
最佳答案
感谢@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
关于r - 阴谋无处,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13299263/
假设我在 net.aserve 和 bordeaux-threads 之上构建了一个应用程序。我的包声明可能如下所示: (defpackage :my-package (:use :cl :net
我是一名优秀的程序员,十分优秀!