无法将RmarkDown文件编织到PDF

发布于 2025-02-12 08:16:17 字数 654 浏览 0 评论 0原文

我试图将R-MAR​​KDOWN文件编织到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")  

Error in R

What should I do here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遇见了你 2025-02-19 08:16:18

我通过创建另一个R-MAR​​KDOWN文件并将输出设置为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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文