【问题标题】:displaying ggplot graphs in jupyter notebook在 jupyter notebook 中显示 ggplot 图
【发布时间】:2018-09-07 18:09:14
【问题描述】:

在 Windows 10 中使用 Jupyter Notebook 做 R。虽然我更喜欢 RStudio,但由于不值得深入的原因,我不能使用它。我将我在 RStudio 上制作的笔记本从我的个人电脑移到了我的工作电脑上,并且无法在 jupyter 上内联生成相同的图表。不过,我可以将它们很好地保存到磁盘上。

有人知道为什么它不起作用吗?这类似于 r graphs in jupyter - unable to start png() device Displaying ggplot2 graphs from R in Jupyter

但不完全是。有人知道为什么我无法显示图表吗?我发现如果我重新启动 Rkernel,我可以显示一个图表,但不能显示更多。

【问题讨论】:

    标签: r ggplot2 jupyter-notebook


    【解决方案1】:

    我不太清楚它为什么会抱怨,但在查看了其他图形包的建议后,我发现我需要安装 pandoc 并重新启动 jupyter。

    您可以从这里安装 pandoc:https://github.com/jgm/pandoc/releases/tag/1.16.0.2

    【讨论】:

      猜你喜欢
      • 2020-09-21
      • 2018-05-10
      • 1970-01-01
      • 2017-05-11
      • 2017-05-28
      • 1970-01-01
      • 2019-06-19
      • 1970-01-01
      • 2019-01-28
      相关资源
      最近更新 更多