This repository provides R code to visualize World Values Survey (WVS) time series data with recent years per country for question E040:
Now I'd like you to tell me your views on various issues. How would you place your views on this scale?
1 means you agree completely with the statement on the left;
10 means you agree completely with the statement on the right; and if your views fall somewhere in between, you can chose any number in between.
Hard work brings success (E040)
1 In the long run, hard work usually brings a better life
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 Hard work doesn't generally bring success - it's more a matter of luck and connections
-1 Don't know
-2 No answer
-3 Not applicable
-4 Not asked in survey
-5 Missing; Unknown*"*
The script generates:
- 🌍 A world map showing the latest available country averages of E040
- 📊 Top 10 and Bottom 10 countries ranked by their averages
The script is written in R. Required packages:
```r install.packages(c("dplyr", "ggplot2", "sf", "rnaturalearth", "rnaturalearthdata", "countrycode", "patchwork"))