Assignment 10
PS 3780 Data Literacy & Visualization, Summer 2022
Due Date: Tuesday, July 19, 2022 at 11:59 p.m.
Please save your visualizations and answers 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 the �le
to Carmen by the due date. Remember we are looking for professional visualizations so
please include a meaningful title as well as axis labels and a legend.
Make Money, Feel Good
Use R to load the assignment10.csv dataset from Carmen. This data was collected from
OSU's subscription to Gallup. There are 5 variables: State, Year, Getting.better, Eco-
nomic.con�dence, and Region. Getting.better and Economic.con�dence are survey re-
sponses that indicate whether the respondent feels their local situation is `getting better'
and whether they have con�dence in the state of the national economy. Create and ana-
lyze an appropriate visualization (or 2) for each question. When analyzing relationships
or trends, use a line plot or add summary lines to the plot (ie. geom_smooth). Write
down what commands that you use for each. (4 pts each)
1 Maps
Choose a year: Was there any geographic clustering of the feeling that things are
getting better and con�dence in the economy? How similar is the geographic vari-
ation for those two questions? (2 maps)
Choose two years: Was there any geographic clustering to the change in eithe
(choose one: economic con�dence or the feeling that the situation is getting better)
etween the chosen years? (1 map) [Hint: dcast( ) the dataset, then easily make a
new variable which is the di�erence between a couple years]
2 Plots
What was the general relationship between economic con�dence and the feeling
that things are getting better across the years? How varied is the relationship in
di�erent years? (1 plot) [Hint: for best visualization, treat Year as a factor variable
(see recitation).]
1
Are the time trends of (choose one: economic con�dence or the feeling that the
situation is getting better) di�erent by region? (1 plot)
2
Maps
Plots