Html gvisMotionChart在R slideify中返回空白绘图

Html gvisMotionChart在R slideify中返回空白绘图,html,r,r-markdown,googlevis,slidify,Html,R,R Markdown,Googlevis,Slidify,我正在尝试用R Slideify制作一个谷歌运动图表。我在网上查阅了很多例子,似乎有些人已经成功地将谷歌运动图嵌入了R Slideify幻灯片中。然后,当我尝试使用类似的代码时,它会给我一个空白的结果。我还使用相同的方法生成了一个谷歌饼图,效果很好(饼图显示在绘图区域) 下面是我的简化代码(这里我使用的是水果数据集,就像所有其他演示一样): --- 标题:“标题” 作者:“我” 日期:''r格式(Sys.time(),%d%B,%Y')` 输出: ioslides_演示文稿: 增量:是的 转换:

我正在尝试用R Slideify制作一个谷歌运动图表。我在网上查阅了很多例子,似乎有些人已经成功地将谷歌运动图嵌入了R Slideify幻灯片中。然后,当我尝试使用类似的代码时,它会给我一个空白的结果。我还使用相同的方法生成了一个谷歌饼图,效果很好(饼图显示在绘图区域)

下面是我的简化代码(这里我使用的是水果数据集,就像所有其他演示一样):

---
标题:“标题”
作者:“我”
日期:''r格式(Sys.time(),%d%B,%Y')`
输出:
ioslides_演示文稿:
增量:是的
转换:默认值
宽屏:是的
幻灯片演示:
增量:是的
职位:职位名称
许可证:由nc sa提供
模式:独立
希瑟:明天
highlighter:highlight.js
字幕:字幕
框架:io2012
小部件:[]
---
##GoogleVis运动图表示例
```{r motionchartcode1,results='asis',warning=FALSE,comment=NA}
图书馆(谷歌)
选项(gvis.plot.tag='chart')

MR中的plot命令使用内部R http帮助服务器来克服此限制

以下是我如何克服它的:

Go to 

 http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html 

Click on the dropbox which says 'Edit location' and choose 'add location'

Click 'browse for folder or browse for file'

Choose the folder (or file) in which was your saved html output

Click OK
您还可以修改代码,例如我:

suppressPackageStartupMessages(library(googleVis))

options(gvis.plot.tag='chart')

M1 <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")

plot(M1)

print(M1, file="myGoogleVisChart.html")

R中的plot命令使用内部R http帮助服务器来克服此限制

以下是我如何克服它的:

Go to 

 http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html 

Click on the dropbox which says 'Edit location' and choose 'add location'

Click 'browse for folder or browse for file'

Choose the folder (or file) in which was your saved html output

Click OK
您还可以修改代码,例如我:

suppressPackageStartupMessages(library(googleVis))

options(gvis.plot.tag='chart')

M1 <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")

plot(M1)

print(M1, file="myGoogleVisChart.html")