Map of the world
  • AI Chat
  • Code
  • Report
  • Beta
    Spinner
    # Trying stuff I saw on the internet 
    # Create the Ghana Map using ggplot
    
    install.packages("maps") # installing packages 
    
    library(tidyverse) # loading the king of libraries 
    library(maps) # loading maps 
    
    map_data('world') %>% # using map_data functions of the 
    filter(region == 'Ghana') %>% # Searching for my beloved country 
    ggplot(aes(x = long, y = lat, group = group, color = "red")) +
    geom_polygon() # creating the map using ggplot +
    theme_bw()