I have a scatter plot using googleVis and I'd like to define the text shown when I hover over a data point. When I try to use non-numeric data I get an error message. Here's the code:
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)
I'd like to have the person's name show up when I hover over the point on the plot.
Any suggestions?