How do I have to set options to make a choropleth of a country distinct than USA? wich locationmode do I have to define in plot_geo function?
g <- list(
scope = ‘peru’,
)
p <- plot_geo(df, locationmode = ‘USA-states’) %>%
add_trace(
z = ~total.exports, locations = ~region,
color = ~total.exports, colors = ‘Purples’
) %>%
layout(geo = g)