【发布时间】: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