【问题标题】:gvisMotionChart() from r package googleVis generating blank plots in browser?来自 r 包 googleVis 的 gvisMotionChart() 在浏览器中生成空白图?
【发布时间】:2021-03-12 12:34:19
【问题描述】:

我第一次使用googleVis r 包并引用了这个链接,但在浏览器中得到一个空白图表

https://www.r-bloggers.com/2019/04/revisiting-world-bank-data-analysis-with-wdi-and-gvismotionchart/

为了交叉检查,我也在 gapminder 数据集上尝试过这个,但我仍然得到一个空白图表

library(gapminder)
library(tidyverse)
library(googleVis)
gapminder
gap <- gvisMotionChart(data = gapminder,
                idvar = "country",
                timevar = "year",
                xvar = "gdpPercap",
                yvar = "lifeExp",
                sizevar = "pop",
                colorvar = "continent"
                ) 

plot(gap)

浏览器输出:

http://.....googleVis/MotionChartID20f874d20ab.html

也试过了:

cat(gap$html$chart, file = "gvis1.html")

SO 的一篇帖子看来,可能存在 Flash 播放器问题 Cannot view gvisMotionChart from printed html file

adobe 网站看来,flash 似乎不再受支持:https://www.adobe.com/in/products/flashplayer/end-of-life.html

这是否意味着 googlevis Motion chart 将不再工作?

【问题讨论】:

    标签: r charts googlevis


    【解决方案1】:

    很抱歉,我遇到了同样的问题,而且似乎不再支持 Flash,因此这些图表不再起作用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多