Choroplet map with mapboxer in r

first of all thanks for reading me and for your help. I'm having trouble creating a choroplet map with mapboxer, I really don't know what I'm doing wrong. Any ideas or suggestions?

The code is the following:

library(tmap)
library(mapboxer)
data("World")

as_mapbox_source(World) %>%
  mapboxer() %>%
  set_view_state(
    lng =  144.9624,
    lat = -37.8105,
    zoom = 1,
    pitch = 35
  ) %>%
  add_fill_layer(
    fill_color = c("get", "fillColor"),
    fill_opacity = 0.6,
    popup = "area"
  )

What error messages are you getting?

Try

library(tmap)
library(mapboxer)
library(sp)
data("World")
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.