有没有办法导出 300dpi 的绘图图? 我有一个旭日图,我正在尝试导出,但我找不到获得所需分辨率的好方法。
最佳答案
您需要安装 orca。请查找安装说明here .
安装后,您可以使用plotly的orca()
函数。 plotly book提供以下有关以英寸 (DPI) 为单位指定的导出的信息:
It’s worth noting that the height and width of a static image must be specified in pixels, which is intuitive for most file formats (png, jpeg, svg, etc) but when exporting to pdf, you might want to specify the size in inches. If you multiply the DPI of your machine’s display by the number of inches you want, you’ll get the desired result.
因此,对于 300 DPI,您将需要如下内容:
orca(plot_ly(), width = 8 * 300, height = 11 * 300)
此外,您可能想查看this相关文章。
关于r - 在 R 中导出 300dpi tiff 的绘图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61199397/