【问题标题】:Why does the ggplotly function not display in my Rmarkdown ioslides为什么我的 Rmarkdown ioslides 中不显示 ggplotly 函数
【发布时间】:2020-06-05 07:52:37
【问题描述】:

我正在尝试制作一张带有交互式图表的幻灯片。 ggplotly 函数在控制台中工作,但不显示在降价块中 - 相应的幻灯片是空白的。正常的情节显示就好了。

---
title: "TEST"
author: "me"
date: "19 February 2020"
output:
  beamer_presentation: default
  ioslides_presentation: default
---

测试(工作)

library(plotly)
df = data.frame(a = c(1:3,1:10))
p = ggplot(df, aes(x=a))+ geom_bar()
p

Test2(不工作)

library(plotly)
df = data.frame(a = c(1:3,1:10))
p = ggplot(df, aes(x=a))+ geom_bar()
ggplotly(p)

【问题讨论】:

    标签: markdown plotly knitr ggplotly ioslides


    【解决方案1】:

    通过从 .html 文件而不是通过 RStudio 直接打开浏览器来修复

    【讨论】:

      猜你喜欢
      • 2014-11-05
      • 2020-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多