in the attached file

1 answer below »
in the attached file


Assignment 2 PS 3780 Data Literacy & Visualization, Summer 2022 Due Date: Thursday, May 26, 2022 at 11:59 p.m. This assignment is designed to test your ability to gather, aggregate, evaluate and describe data. Additionally, this assignment tests your ability to di�erentiate between di�erent forms of data visualization. Please save your answer to these questions as one .pdf �le (use the �save as� function in most word processors). Be sure to include your name, your teammate's name if there is anyone, and the assignment number. Submit all �les to Carmen by the due date. Gapminder Think about what might account for di�ering levels of happiness across countries. Go to Gapminder World (https://www.gapminder.org/tools/), select the Y (vertical) axis, and select Happiness score (WHR) under the Society category. What do you think would correlate with this measure, internationally? Scan the available data on the X axis and try out a couple di�erent variables. Make sure to select a variable for which there is data on enough countries on a long enough time period. Select one of the variables you looked at and evaluate the relationship between that variable and happiness. Why do you think you might be seeing those patterns in the data? Use the links button to create a short URL to your graph. Along with this link, write 1-2 paragraphs describing the patterns you see in the data and speculating about what might have produced them. (3 points) Datawrapper Download a CSV �le of the variable you compared to Happiness in the question above. (On the Gapminder page, go to Facts � Data and type in the name of the variable you selected.) Use this dataset and Datawrapper (https://www.datawrapper.de/) to generate a Choropleth map of the world. Select a recent year for which most countries have values and correct the names of unmatched countries. What year did you select and what is the variation for you chosen variable around the world in that year? Does there appear to be any geographic clustering of values or are the randomly spread across the glob. Include a screenshot of you map and write 1-2 paragraphs describing the visualization and answering the questions. (3 points) 1 https://www.gapminder.org/tools/ https://www.datawrapper.de/
Answered Same DayMay 26, 2022

Answer To: in the attached file

Mohd answered on May 27 2022
98 Votes
-
-
-
5/26/2022
library(readr)
library(magrittr)
library(dplyr)
library(ggplot2)
library(rma
rkdown)
library(readr)
income_per_person_gdppercapita_ppp_inflation_adjusted <- read_csv("New folder (2)/income_per_person_gdppercapita_ppp_inflation_adjusted.csv")
Removing K from data values
PerCapInc<-income_per_person_gdppercapita_ppp_inflation_adjusted[,c(1,4)]
PerCapInc$year_2021<-PerCapInc$`2021`
PerCapInc$`2021`=NULL
library(data.table)
head(PerCapInc,10)
## # A tibble: 10 x 2
## country year_2021
##
## 1 Afghanistan 1950
## 2 Angola 6060
## 3 Albania 13.9k
## 4 Andorra 63.7k
## 5 United Arab Emirates 61.3k
## 6 Argentina 20.6k
## 7 Armenia 12.7k
## 8 Antigua and Barbuda 17.1k
## 9 Australia 50.1k
## 10 Austria ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here