Week 8
Introduction to ggplot2
Soci—269
Coding Assignment Deadline
Your first coding assignment is due by 8:00 PM on Tuesday, November 4th.
ggplot2Launch RStudio and run the following code:
Give me a when all the packages have been installed.
Wilkinson (2005) created the grammar of graphics to describe the fundamental features that underlie all statistical graphics. The grammar of graphics is an answer to the question of what is a statistical graphic? ggplot2 (Wickham 2009) builds on Wilkinson’s grammar by focusing on the primacy of layers and adapting it for use in . In brief, the grammar tells us that a graphic maps the data to the aesthetic attributes (colour, shape, size) of geometric objects (points, lines, bars). The plot may also include statistical transformations of the data and information about the plot’s coordinate system. Facetting can be used to plot for different subsets of the data. The combination of these independent components are what make up a graphic.
(Wickham, Navarro, and Pedersen 2025, EMPHASIS ADDED)
Note
The rest of today’s session will take place in RStudio!
Title
Something Between Us
The Everyday Walls of American Life, and How to Take Them Down
Description
Scroll to access the entire description.
In 2016, Anand Pandian was alarmed by Donald Trump’s harsh attacks on immigrants to the United States, the appeal of that politics of anger and fear. In the years that followed, he crisscrossed the country seeking out fellow Americans with markedly different social and political commitments, trying to understand the forces that have hardened our suspicions of others. The result is Something Between Us, a groundbreaking and ultimately hopeful exploration of the ruptures in our social fabric, and courageous efforts to rebuild a collective life beyond them. Through vivid encounters with Americans of many kinds, Pandian shares tools to think beyond the twists and turns of our bracing present.
Date and Time
Location
Coding Assignment Deadline
Your first coding assignment is due by 8:00 PM on Tuesday, November 4th.
Note
The rest of today’s session will take place in RStudio!
You’ll need to obtain valid API keys to use the
tidycensus and cancensus libraries next week.
