我遵循了这个页面上给出的构建choropleth地图的模型:。多边形的颜色有些透明,我试图改变的不透明度没有任何效果。
library(ggplot2) # For the demo map data
library(plotly)
ohio_counties <- map_data('county', 'ohio')
# This id simulates the categorical variable I'm trying to represent with color
ohio_counties$id <- letters[ohio