Lectures PDFs of slides are best viewed in Adobe Acrobat, rather than in your browser. Short Course Visualizing Model Inference and Robustness This is a 9-hour short course version of the full Data Visualization course; the lectures for the full term course are below. Students taking the short course will also need these additional resources: - Materials for the R review session: A brief introduction to R for data visualization, R code and data for the GDP example. R code and data from the fertility example. Detailed instructions for downloading, installing, and learning my recommended software for quantitative social science are here.
- Materials for Session 3: R code and data for the voting example, and sample output for expected values, first differences, relative risks, and a combination plot. R code and data for the inequality scatterplot, and sample output.
- Materials for Session 5: R code for the crime example.
Topic 1 Topic 2 Principles for the Visual Display of Scientific Information Topic 3 Cognitive Issues in Visualization Topic 4 In the first part of the lecture, we will consider examples from ggplot2 collected in this R script, which relies on this dataset. Topic 5 Exploratory Data Analysis: Between Data & Model Topic 6 Download instructions for the tile package can be found under the Software tab at left. We will discuss up to four examples in detail: - Making a scatterplot in tile: R code, data, and sample output.
- Visualizing a logit model of voting with tile’s lineplot: R code, data, and sample output for expected values, first differences, relative risks, and a combination plot.
- Making ropeladder plots to show model robustness using crime data: R code.
- Making ropeladder plots to show in-sample simulation results from an ordered probit model of preferenes over carbon taxes from a survey experiment: R code, helper function for in-sample simulation, data, and sample output.
Topic 7 Interactive Visual Displays with R + Shiny The Shiny package makes it easy to convert your R code and graphics, including those made with the tile package, into interactive displays for the web. We’ll work through the written Shiny tutorial at the bottom of this page. - An interactive scatterplot combining Shiny and ggplot2. This example builds on the running example from the first half of Topic 4 exploring the relationship between life expectancy and GDP per capita in cross-national data. You can download the interactive R code to run locally.
- A simple text-based Shiny interactive with a html-based user interface. This online example tests whether a user-provided sentence is a pangram (a sentence containing every letter in the alphabet). You can also download the underlying R code.
- A more elaborate interactive using Shiny and tile to show who got the most medals in the Olympics using different medal aggregation formulas. The underlying code for the example is in this zip archive.
Topic 8 Advanced Latex for Scientific Typesetting Time permitting, we will consider the use of modern Latex typesetting tools, especially Xetex and the fontspec package. I offer three stylesheets for students looking to spruce up their documents. (Students new to Latex should read the Not So Short Introduction to Latex before embarking on any of the advanced stylesheets below.) - caxetexFreeOL (manual). A powerful XeLaTeX stylesheet using free typefaces and implemented for the popular, easy-to-use Latex platform Overleaf. You can find everything you need to get started with caxetexFreeOL at this Overleaf project. Note in particular the template for research papers.
- caxetexFree (manual). The same powerful XeLaTeX stylesheet using free typefaces, but for use on your local computer's TeX installation. You will need to download the relevant typefaces as instructed in the manual.
- caxetexBook (manual). The main XeLaTeX stylesheet I use in my own publishing. You will need to purchase the commercial typefaces listed in the manual if you wish to use this stylesheet.
Gallery 1 Gallery 2 Maps as Visual Displays of Information Gallery 3 Gallery 4 Grayscale Images of Continuous Data Gallery 5 Gallery 6 Heatmaps for Visualizing Continuous Dyadic Data Gallery 7 Ternary Plots for Compositional Data Analysis Student Assignments Due in class 21 January 2021 You will need these data. Due in class 16 February 2021 Due in class 11 March 2021 Breakout Group Individual memo due before group meets; Group essay due by 22 February Students will join a small group to discuss a visual display problem of common interest; creation and organization of these groups to be coordinated through the web. Students will write a 2-5 page memo before the first group meeting, and each group will write a 5-8+ page essay for the class on what they have learned, to be distributed by 22 February. Groups will answer questions from the class during the week of 22 February. See the syllabus for further details. Final Poster Presented during the final three to four classes On an assigned day during the last two weeks of the course, each poster group will present a poster applying the tools learned in class to their own research. Alternatively, students can take an article published in their field and show how better visuals would either more clearly convey the findings or cast doubt on them. The final presentation may address problems raised in the breakout session or problem sets, but it is usually more fruitful for students to tackle a new problem. Labs Lab 1 Intro to labs, R and RMarkdown Supplementary
material: Take a look at the section syllabus. For RMarkdown, see lab1_RMarkdownSample.Rmd (and the sample PDF output). Lab 2 Supplementary
material: Source .Rmd for section slides. Lab 3 Supplementary material: Exercise: data to reproduce this graph; also a customized theme. Lab 4 Supplementary material: Data: cyyoungFD for ropeladder, and measles for heatmap. Lab 5 Supplementary material: Inequality example's script and data; voting example 's script and data; crime example's script. Lab 6 Supplementary material: Download New York's shapefile (.shp) here. Lab 7 Visualizing network/relational data Supplementary material: Two datasets required: Florentine marriage data and global migration data. Lab 8 Interactive Visual Display with R + Shiny Supplementary material: Simple Shiny app script 1 and script 2; and simple graphs explaining reactive intermediary. Lab 9 Latest extension packages for visualization Supplementary material: The underlying .Rmd written with flipbookr + xaringan packages. |

Designed by |