I had an error in the plot graph when using colors for these factors.
An example that gives me an error:
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 suggests that this is an error due to updates in packages.
Are there any other problems facing this problem? I am using R version 3.4.1, story version 4.7.1 and scale version 0.5.0.
source
share