rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

issue with colorRampPalette within ly_points

Open NemanjaVucic90 opened this issue 6 years ago • 1 comments

Greetings guys,

I am having troubles running this example code screen shot 2018-03-12 at 4 55 49 pm screen shot 2018-03-12 at 4 56 08 pm

I have no idea what seems to be the problem, any help please?

NemanjaVucic90 avatar Mar 12 '18 15:03 NemanjaVucic90

Your are running the dev version (0.6.3). Your code works fine with the CRAN version (0.5.0).

# install.packages("rbokeh")
library(rbokeh)

n    <- nrow(cars)
ramp <- colorRampPalette(c("red","blue"))(n)

## rbokeh_0.5.0
figure() %>% 
  ly_points(cars, color = ramp, size = seq_len(n))

Atrebas avatar Apr 12 '18 11:04 Atrebas