Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

issue with colorRampPalette within ly_points #224

Open
NemanjaVucic90 opened this issue Mar 12, 2018 · 1 comment
Open

issue with colorRampPalette within ly_points #224

NemanjaVucic90 opened this issue Mar 12, 2018 · 1 comment

Comments

@NemanjaVucic90
Copy link

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?

@Atrebas
Copy link

Atrebas commented Apr 12, 2018

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))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants