【发布时间】:2016-10-07 07:02:06
【问题描述】:
我正在尝试使用提供的文档修改 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 包提供的其他图表类型的工具提示。但这似乎不适用于气泡图。有什么解决办法吗?
【问题讨论】: