The world as a globe (orthographic projection) centred on lon/lat – the
honest answer to "the whole world on a rectangle exaggerates the poles". Takes
the same fill / style options as world_map(). The default "sf" backend
gives the cleanest limb; the "polygon" backend draws the globe with
ggplot2::coord_map() and needs only maps + mapproj (no sf).
Arguments
- data
A map-ready frame: an
sfframe forbackend = "sf", or a country-level frame withiso3c(or a polygon frame) forbackend = "polygon".- fill
The fill column (unquoted).
- lon, lat
The longitude / latitude the globe is centred on (the face pointing at the viewer).
- backend
"sf"(default, viaggplot2::coord_sf()) or"polygon"(viaggplot2::coord_map(), nosfrequired).- style, palette, n_bins, borders, title, legend, na_label
As in
world_map().
Examples
if (FALSE) { # \dontrun{
world_data(2020, geometry = "sf") |>
globe_map(gdp_per_capita, lon = 10, lat = 30)
# No sf required:
globe_map(world_snapshot$countries, continent, backend = "polygon",
style = "categorical")
} # }
