Publications by Kitada Smalley

AQI: Numeric Summaries and Graphics

20.10.2022

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

24.10.2022

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

25.10.2022

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

27.10.2022

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

27.10.2022

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

27.10.2022

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

01.11.2022

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

01.11.2022

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

DATA151: Regression (Take a Hike)

08.11.2022

Learning Objectives: Students will learn to create scatterplots and describe the relationships between two numeric variables. Example: Take A Hike! STEP 1: Load the data: body_wgt<-c(120, 187, 109, 103, 131, 165, 158, 116) backpack_wgt<-c(26, 30, 26, 24, 29, 35, 31, 28) backpack_df<-data.frame(body_wgt, backpack_wgt) Which variable should be t...

1404 sym R (2130 sym/24 pcs) 3 img

DATA151: Introduction to Regression Models

10.11.2022

Learning Objectives Students will learn how to use linear regression to model relationships between variables and also explore subgroups. Example 1: Climate Change and Fish Habitats As the climate grows warmer, we expect many animal species to move toward the poles in an attempt to maintain their preferred temperature range. Do data on fish in t...

2203 sym R (6049 sym/25 pcs) 7 img