r - 在 R 中导出 300dpi tiff 的绘图

标签 r export plotly

有没有办法导出 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/

相关文章:

r - 创建一个 0 对角线排列的 5x5 矩阵

r - 未发布的包 : can't find un-exported function

python - Plotly:如何利用 go.Scatter 等函数的元参数?

r - ggplot2:如何将变量的值分配给ggplot标题

r - install.packages : cannot remove prior installation of package ‘data.table’ 中的警告

java - JFreeChart - 将图表转换为 PDF,每页一个

javascript - 创建图形并导出为图像的库

python - 通过 pyspark 转换在 pandas 数据帧上实现 Plotly

r - 如何在 R-plotly 等高线图中添加 X 标签、Y 标签、z 标签

R matchingMarkets::hri() x[y] 错误:无效下标类型 'list'