Mapping Facebook Interactions

This work comes from a database I used for my master thesis as of March 26th 2024. It compiles varius interactions between Latin American Facebook groups. The following maps illustrate some of the information about these interactions.

Content creators

This first map shows the distribution of content creation in the region. The size of each circle represents the population while the color of each circle represents the amount of content generated by each country (the darker the color, the more content created). As we can see, there are relatively few content creators and they seem to be heavily concentrated in Mexico.

# Create Leaflet map
leaflet(data = merged_data) %>%
  addTiles() %>%
  addCircleMarkers(
    lng = ~`Longitude (average)`,
    lat = ~`Latitude (average)`,
    radius = ~sqrt(TPopulation1Jan/100), # Adjust radius based on weight
    color = "black",
    fillColor = ~colorNumeric(palette = "Blues", domain = log(merged_data$Weight))(log(Weight)),
    stroke = TRUE,
    fillOpacity = 0.6,
    popup = ~paste("Country: ", Country, "<br>Weight: ", Weight)
  ) %>%
  addLegend(
    position = "bottomright",
    pal = colorNumeric(
      palette = "Blues", 
      domain = merged_data$Weight,
      na.color = "transparent"
    ),
    values = ~Weight,
    title = "Weight",
    opacity = 1
  )

Content

For this next map, I identified the mentions of other countries within the publication. So for example, if an ecuadorean content creator talked about brazil, then brazil was coded. Based on this work, I identified how much Latin American Facebook groups talk about each other. The following map presents how often each country was mentioned in the content analyzed, with the color of the circles representing the frequence and the size representing the country’s population. This visualization shows that the content is more evenly distributed among the countries of the region, meaning that even when most content creators come from Mexico, the content itself often talks about the other countries in the region.