當我將運動圖表的代碼保存到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