使用R修复空白PDF页面

时间:2016-06-09 13:05:04

标签: r

我正在尝试用R生成一个文件PDF。

我正在使用CKEDITOR.editorConfig = function (config) { // ... other configuration ... config.toolbar_mini = [ ["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"], ]; config.toolbar = "simple"; extraPlugins : 'uicolor', height: '800px', // ... rest of the original config.js ... } pdf()pie(),但我的PDF结果中的所有页面都是空白的。

这是我的R代码:

dev.off()

如何修复空白页面,以便在每个页面上制作饼图?

1 个答案:

答案 0 :(得分:0)

您的宽度和高度非常高,因为单位指定为英寸。默认值为7英寸。所以你应该使用一个较小的值:

pdf(file = "path_to_your_file.pdf", width = 10, height = 6, onefile=TRUE)

# your code here

dev.off()
相关问题