The map I created isn't interactive and its not showing color as expected.
This is the dataset.
# give state boundaries a white border
l <- list(color = toRGB("Yellow"), width = 2, set="2")
# specify some map projection/options
g <- list(
scope = 'world',
projection =list(type="production_countries"),
showlakes = TRUE,
lakecolor = toRGB('Green')
)
fig <- replacement %>% filter(!is.na(production_countries)) %>% plot_geo(locationmode = "Continent") %>%
add_trace(z = ~sum,
locations = ~production_countries,
color = ~sum,
text = ~ label_text,
color="Purple")
fig <- fig %>% colorbar(title="color")
figA<- fig%>% layout(
title = "Distribution of film production by countries",
geo = g
)
figA
type or paste code here
This is the code used