'colour_ramp'不是传单包中'namespace:scales'的导出对象。我已经在r中安装了传单。如何解决问题?谢谢!
我的代码正在关注,
library(leaflet)
# Set up the color palette and breaks
colors <- c("#FFEDA0", "#FED976", "#FEB24C", "#FD8D3C", "#FC4E2A", "#E31A1C", "#BD0026", "#800026")
bins <- c(-Inf, 10, 20, 50, 100, 200, 500, 1000, Inf) + 0.00000001
pal <- colorBin(colors, NULL, bins)
> pal <- colorBin(colors, NULL, bins)
Error: 'colour_ramp' is not an exported object from 'namespace:scales'