I'm trying to create a map of New Zealand in R using the library echarts4r
but the map looks tiny and I couldn't figure out how to zoom in or determine lat/long boundaries to make it more visible.
Here is my code (adapted from the example in the documentation https://echarts4r.john-coene.com/articles/map.html)
library(echarts4r.maps)
df <- data.frame(
region = c("Wellington", "Auckland"),
value = c(10,20)
)
df |>
e_charts(region) |>
em_map("New_Zealand") |>
e_map(value, map = "New_Zealand") |>
e_visual_map(value) |>
e_theme("infographic")
Do you know how to zoom in maps, or set lat/long boundaries, in echarts4r? Any help would be much appreciated!