当我将运动图表的代码保存到html文件并尝试打开它时,我看到页脚,“初始化”进度条瞬间闪烁,但没有其他显示向上。无法从打印的html文件中查看gvisMotionChart
所以
M1 <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")
plot(M1)
的伟大工程,但
print(M1, file='d:/delete/fruit.html')
,然后打开在浏览器中生成的文件出现空白(除页脚)。有没有一种方法可以保存这种可视化效果并将其流通?
I can't reproduce your problem -- printing produces a working file for me. You should try printing without specifying a file, which spits out the html in your R session. You can look this over and copy it to a file if nothing is missing. – Fojtasek