4

我有一个使用 googleVis 的散点图,我想定义当我将鼠标悬停在数据点上时显示的文本。当我尝试使用非数字数据时,我收到一条错误消息。这是代码:

library(googlVis)
df1 <- data.frame(id = seq(1,10,1), var1 = runif(10), var2 = runif(10))
df1$names <- c("jim","nancy","suzy","mark","alex","jen","luz","jeff","paula","amir")
head(df1)
df1Plot <- gvisScatterChart(df1[,2:4])
plot(df1Plot)

当我将鼠标悬停在情节上的点上时,我希望显示此人的姓名。

有什么建议么?

4

0 回答 0