79257585

Date: 2024-12-06 10:10:53
Score: 1
Natty:
Report link

Based on the data you provided, a compact alternative could be using the package WorldMapR and its function worldmap:

europedf <- as.data.frame(europe)

europedf[1:3,] # show first rows of the data

worldplot(data = europedf,
          ColName = "Production",
          CountryName = "Country",
          CountryNameType = "name",
          latitude = c(35,72), longitude = c(-24,40),          # focus on Europe
          palette_option = brewer.pal(n = 8, name = "Blues"),
          annote = T,                                          # If you want labels
          div = 0.8                                            # dimensions option
          )

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luigi