rbokeh
rbokeh copied to clipboard
Scatterplot hover sometimes does not display values for certain columns
The following works correctly for me:
rbokeh::ly_points(figure(), a, b, data.frame(a = c(1,2), b = c(3,4)), hover = "@a and @b")
Curiously this does not:
rbokeh::ly_points(figure(), a, ab, data.frame(a = c(1,2), ab = c(3,4)), hover = "@a and @ab")
The value shows up as '???'
I suspect that names collide when one of them starts with another as a substring.
R 3.3.3, rbokeh_0.5.0 rj_2.1.0-11, Firefox 54.0 Ubuntu 16.04
This also seems to work (changed the order of appearance in the hover template):
rbokeh::ly_points(figure(), a, ab, data.frame(a = c(1,2), ab = c(3,4)), hover = "@ab and @a")