/NATO_Russo_Ukriane_War

Geo-spatial sentiment analysis using tweets to explore public perceptions of NATO during the Russo-Ukrainian War, with a focus on how proximity to Russia influences sentiment.

Public Sentiment Towards NATO in the Context of the Russo-Ukrainian War

This repository contains a detailed geo-spatial sentiment analysis of the public perception of NATO during the NATO-Russo-Ukraine conflict in 2022. The analysis uses tweets in English from 27 European countries to explore how proximity to Russia influences sentiment towards NATO. The analysis was performed using R and is presented as a markdown file, offering a structured and reproducible format for the study.

Project Overview

The project aims to explore the dynamics of the conflict through data-driven insights. It includes comprehensive visualizations, trend analyses, and discussions on the implications of the ongoing war.

Structure

  • Analysis: The core analysis is conducted and presented in a single R Markdown file, which includes:

    • Sentiment Analysis: Evaluation of public sentiment towards NATO using 4870 tweets in English from 27 European countries collected on June 15, 2022.
    • Geospatial Visualization: The use of heat maps and scatter plots to illustrate sentiment distribution across different regions of Europe.
    • Proximity Analysis: Investigation into how geographical proximity to Russia affects the sentiment towards NATO.
  • Scripts and Results: The R Markdown file also contains the necessary scripts for data processing, sentiment analysis, and visualization. It includes all the code used to generate the results, providing a comprehensive view of the methodology and findings:

Full Analysis

For a detailed view of the analysis, including interactive visualizations and the complete methodology, visit the full analysis report.

Usage

To replicate the analysis, follow these steps:

  1. Clone the Repository: Clone this repository to your local machine.

    git clone https://github.com/asaines/NATO_Russo_Ukriane_War.git
    
  2. Install Required R Packages: Install the necessary R packages. You can do this by opening R and running:

    install.packages(c("quanteda", "quanteda.textplots", "cowplot", "vader", "readxl", "tidyverse", "REdaS"))
    
    

Alternatively, if a DESCRIPTION or renv.lock file is provided, use it to install the exact package versions used.

  1. Render the R Markdown File: Open the NATO_Russo_Ukriane_War.Rmd file in RStudio or another R environment and render it to produce the analysis.

    rmarkdown::render("NATO.Rmd")
    
  2. View the Analysis: Once rendered, open the generated HTML file in a web browser to view the analysis.

Results

The analysis confirmed a significant finding: there is a negative relationship between the distance from Russia and the proportion of positive tweets about NATO. Specifically, the closer a European country is to Russia, the more positively it tweets about NATO. This conclusion was supported by the scatter plot, correlation matrix, and Europe heat map, validating the hypothesis that proximity to Russia influences public sentiment toward NATO.

Word Cloud

Word Cloud

The word cloud shows the most frequently mentioned terms in tweets related to the Russo-Ukrainian war and NATO, highlighting key topics of discussion.

Geographical Sentiment Map

Geographical Sentiment Map

This map illustrates the percentage of positive words about NATO in tweets across different European countries. The results indicate that countries closer to Russia have a higher rate of positive sentiment towards NATO.

Positive Score vs. Distance

Positive Score vs. Distance

The scatter plot displays the relationship between the distance from Russia and the positive sentiment score. It suggests that proximity to Russia may positively influence NATO's perception.

The analysis confirmed a significant finding: there is a negative relationship between the distance from Russia and the proportion of positive tweets about NATO. Specifically, the closer a European country is to Russia, the more positively it tweets about NATO. This conclusion was supported by the scatter plot, correlation matrix, and Europe heat map, validating the hypothesis that proximity to Russia influences public sentiment toward NATO.

License

This project is licensed under the MIT License.

Contact

For questions or further information, feel free to reach out via Linkedin