I got an error in a plotly plot when using colors for factor data.
Example that gives an error for me:
library(plotly)
test <- data.frame(x=1:10, y = exp(1:10), z = rep(c('A', 'B'), each=5))
plot_ly(test, x = ~x, y = ~y, color = ~z)
I got this error:
Error in .Call("_scales_doColorRamp", PACKAGE = "scales", colors, x, alpha, :
"_scales_doColorRamp" not available for .Call() for package "scales"
This suggest that it is an error due to an update in package scales.
Are there more that are facing this problem? I am using R version 3.4.1, plotly version 4.7.1 and scales version 0.5.0.
Removing and reinstalling the package scales
did solve this issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With