我正在尝试使用下面给出的文档修改gvisBubbleChart的工具提示 - https://cran.r-project.org/web/packages/googleVis/vignettes/Using_Roles_via_googleVis.html
我的代码是
temp <- data.frame(id = c("a","b","c","d","e"), x = c(1,2,3,4,5), y = c(1,2,3,4,5), y.html.tooltip = c("a","b","c","d","e"))
plot(gvisBubbleChart(data = temp, idvar = "id", xvar = "x", yvar = c("y", "y.html.tooltip")))
出现以下错误 -
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 5, 0
我已使用上述方法为googleVis包提供的其他图表类型修改了工具提示。但这似乎不适用于气泡图。有没有解决方案?
答案 0 :(得分:0)
plot(gvisBubbleChart(data = temp, idvar = "id", xvar = "x", yvar = c("y")))
对我来说很好。