无法将RmarkDown文件编织到PDF
我试图将R-MARKDOWN文件编织到PDF,但一直收到错误。我包含了错误的屏幕截图。第107行中的R块是:
#means and confidence intervals
ggplot(data = lizard_means_dataframe, aes(x = dist_pred_nest, y = emmean, colour = dist_pred_nest)) +
geom_point(size = 2) + geom_errorbar(aes(ymin = lower.CL, ymax = upper.CL), lizard_means_dataframe, width = 0.2) +
scale_color_brewer(palette = "Dark2") + guides(colour="none") +
theme_classic(base_size = 16) + xlab ("Distance to the nest of a predator") + ylab ("Distance to the neighbor lizard territory")
我应该在这里做什么?
I tried to knit a R-markdown file to Pdf but kept receiving an error. I have included a screenshot of the error. The r chunk in line 107 is:
#means and confidence intervals
ggplot(data = lizard_means_dataframe, aes(x = dist_pred_nest, y = emmean, colour = dist_pred_nest)) +
geom_point(size = 2) + geom_errorbar(aes(ymin = lower.CL, ymax = upper.CL), lizard_means_dataframe, width = 0.2) +
scale_color_brewer(palette = "Dark2") + guides(colour="none") +
theme_classic(base_size = 16) + xlab ("Distance to the nest of a predator") + ylab ("Distance to the neighbor lizard territory")
What should I do here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过创建另一个R-MARKDOWN文件并将输出设置为PDF文档来解决我的问题。我无法使用
渲染
函数来指定输出格式。我卸载了Miktek并安装了Teklive。现在,我能够成功编织我的文档。I solved my problem by creating another R-markdown file and setting the output as a pdf document. I could not use the
render
function to specify the output format. I uninstalled Miktek and installed Teklive. Now I'm able to knit my document successfully.