rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

Issue specification variable names in hexbin (rbokeh version 0.6.3)

Open lcougnaud opened this issue 7 years ago • 1 comments

I encountered an issue when specifying field names with a specified dataset in ly_hexbin function with the version 0.6.3 of the package (installed to check the issue #216).

data(iris)
rbokeh::figure() %>% rbokeh::ly_hexbin(data = iris, x = "Sepal.Length", y = "Sepal.Width")

Error in r[i1] - r[-length(r):-(length(r) - lag + 1L)] : non-numeric argument to binary operator

I haven't encountered this issue with the CRAN version of the package (0.5.0). Please note that this works when the variables are directly specified as vectors:

data(iris)
rbokeh::figure() %>% rbokeh::ly_hexbin(x = iris[,1], y = iris[, 2])

lcougnaud avatar Oct 05 '18 10:10 lcougnaud

Thanks for this report. This version of rbokeh is still experimental. The latest version that will be pushed to CRAN is what is currently available in the master branch of hafen/rbokeh.

hafen avatar Oct 05 '18 16:10 hafen