Publications by Kitada Smalley
Tables and Bars
Learning Objectives In this lesson students will learn to apply categorical data analysis methods to data sets with fundamentally different structures. Work with cross-tabulated data Work with individual level raw data Create univarite tables to show marginal distributions Create two-way tables to show joint and conditional distributions Create ...
4133 sym R (8666 sym/71 pcs) 19 img 4 tbl
Recreate: Voter Registration
Voter Registrations Are Way, Way Down During the Pandemic FiveThirtyEight article (Jun 26, 2020) by Kaleigh Rogers and Nathaniel Rakich The original article can be found at: https://fivethirtyeight.com/features/voter-registrations-are-way-way-down-during-the-pandemic/ Tasks Identify/implement the major geometry (or geometries) used Identify/imp...
934 sym R (704 sym/5 pcs) 1 img
AQI: Numeric Summaries and Graphics
Learning Objectives In this lesson students will learn to work with numeric data to create graphics and summaries. Example : Oregon Air Quality Index (AQI) These data were reported on AirNow on October 19, 2022 for the states of Oregon, Washington, and Colorado. https://www.airnow.gov/state/?name=oregon Step 0: Library Tidyverse library(tidyver...
2858 sym R (2748 sym/40 pcs) 8 img
DataViz: HCL
Hue, Chroma, Luminance Color Space The hcl() function generates HEX codes and can be used to create color palettes. library(tidyverse) # CAN USE BASE #install.packages("hcl") #library(hcl) Default colors: df<-data.frame(x=1:5) ggplot(df, aes(x, y=1, fill=x))+ geom_tile()+ coord_equal()+ theme_void()+ guides(fill="none") Hue The hue of ...
567 sym R (783 sym/5 pcs) 4 img
DATA151: Comparing Distributions
Learning Objectives In this lesson students will compare distributions from multiple populations of interest using: dplyr: group_by and summarise side-by-side boxplots side-by-side violin plots dot plots beeswarmplots faceting Step 0: Library Tidyverse library(tidyverse) Step 1: Load the Data aqi<-read.csv("https://raw.githubusercontent.com/ki...
1621 sym R (2920 sym/28 pcs) 8 img
DataViz: Coffee
Learning Objectives In this lesson students will learn how to Create a map of the United States Create a map of the World Try different map projections Color a map based on variables Example 1: Dutch Bros Dutch Bros Coffee is a drive-through coffee chain headquartered in Grants Pass, Oregon, with company-owned and franchise locations throughout...
4212 sym R (8517 sym/59 pcs) 18 img
DATA151: Time and Space
Learning Objectives In this lesson students will learn how to create Time series plots Choropleths (colored map plots) Time Series Plots Time series plots show how a variable (on the y-axis) changes over time (on the x-axis). Example 1: Salem, Oregon AQI Step 0: Library Tidyverse library(tidyverse) Step 1: Load the Data salem<- read.csv("htt...
2052 sym R (4809 sym/35 pcs) 11 img
DataViz: Projections
Using map_data in ggplot2 0: Library Tidyverse library(tidyverse) A. Load the data # Load map data world_map = map_data("world") B. Basic Map world_map%>% ggplot(aes(map_id = region)) + geom_map(map = world_map)+ expand_limits(x = world_map$long, y = world_map$lat) C. Projections Since the globe is a 3D object, we must project it onto ...
1590 sym R (1601 sym/10 pcs) 6 img
DATA151: Candy Tables
Halloween Candy Ranking Read the fivethirtyeight article and watch the short movie https://fivethirtyeight.com/videos/the-ultimate-halloween-candy-power-ranking/ Here’s some documentation on these data: https://github.com/fivethirtyeight/data/tree/master/candy-power-ranking Step 0: Load the Data candy<-read.csv("https://raw.githubusercontent.c...
815 sym R (1894 sym/17 pcs) 4 img
TDF Solutions
Learning Objectives: Students will use this exercise to assess their ability to translate questions into code using tidyverse packages and verbs. dplyr: filter(), mutate(), group_by(), summarise(), count(), ect ggplot2: ggplot(), aes(), geom_bar, geom_col, geom_histogram, geom_boxplot, geom_density Step 0: Library tidyverse library(tidyverse) ...
5324 sym R (10325 sym/41 pcs) 3 img