Publications by Kitada Smalley
FA20:MATH138 T-Tests
T-Tests: One sample, Paired, Two sample 1) One Sample T-tests for the Mean Example: Call Lengths Answers.com claims that the mean length of all cell phone conversations in the United States is 195 seconds (3 minutes 15 seconds). One researcher believes this 195 value is outdated and that the true mean time spent on a cell phone calls is somethi...
2443 sym R (6008 sym/54 pcs) 2 img
Fall 2020 Data Challenge: WU Team
1. Goal: Increase Voter Turn-out This prior election illustrated how voter turnout matters. This year in Pennsylvania, Joe Biden won by only 47,578 votes. By understanding what factors impacted voter turnout in previous years, campaigns can better target people who are actually likely to vote rather than wasting both time and money. As such for o...
1913 sym R (8460 sym/18 pcs) 10 img
DataViz: Interactive Demos
The following demos are modified from https://www.r-graph-gallery.com/interactive-charts.html. I. Examples with plotly 1) Scatterplots fert<-read.csv("https://raw.githubusercontent.com/kitadasmalley/FA2020_DataViz/main/data/gapminderFert.csv", header=TRUE) library(tidyverse) #install.packages("plotly") library(plotly) p<- fert...
851 sym R (5027 sym/9 pcs)
DataViz: Dynamic Visualization with Gapminder
Motivating Example: Gapminder Fertility vs Life Expectancy In this demo we are going to learn about dynamic graphics by using the Gapminder data on Fertility. These data are discussed in the Hans Rosling TED Talk (start at 2:30) https://youtu.be/hVimVzgtD6w?t=149. For more detail on how the data were wrangled please look at the article “How to...
1168 sym R (1998 sym/6 pcs) 2 img
FA2020_DV:Mid1 SOLUTION
Code by student (Brad Jackson) Recreating Graphic 1. Importing and Tidying library(tidyverse) # Import data sports<-read.csv("https://raw.githubusercontent.com/kitadasmalley/FA2020_DataViz/main/data/NFL_fandom_data.csv", header=TRUE) # Tidy the data ## Use gather to create: ### column for sport (categorical variable) ### Column for search inte...
152 sym R (3296 sym/9 pcs) 3 img
MATH 138: Confidence Intervals
The Big Idea: The sampling distribution tells us how close the sample mean, \(\bar{x}\), is likely to be to the population mean, \(\mu\). All confidence intervals that we will construct in this call have a form similar to this: \[\text{estimate} \pm \text{margin of error}\] The margin of error is the product of the critical value and the standard...
4270 sym R (1330 sym/19 pcs) 1 img
FallChallenge2020: Voter Turn-out
Download the data I uploaded the data to my github: library(tidyverse) ### this just puts the 2016 and 2018 datasets together data1618<-read.csv("https://raw.githubusercontent.com/kitadasmalley/fallChallenge2020/ff4d4795566a553cade80ca6e6fe15ea69ee6e1b/data/data_2016_2018.csv", header=TRUE) #dim(data1618) #names(data1618) ## ...
686 sym R (24877 sym/119 pcs) 8 img
DataViz: Map Building Demo
Motivating Example In this demo we will be looking at factors for housing insecurity and homelessness in Seattle, Washington. Step 1: Polygon Maps library(tidyverse) #install.packages("maps") library(maps) wa_counties <- map_data("county", "washington") %>% select(lon = long, lat, group, id = subregion) head(wa_counties) ## lon ...
3121 sym R (9457 sym/41 pcs) 7 img
DataViz: Interactive Demos (Part2)
The following demos are modified from https://www.r-graph-gallery.com/interactive-charts.html. Part 1 For scatterplots, heatmaps, and area plots see: https://rpubs.com/hsmalley/dataViz_interact Part 2 IV. Chord diagrams with chorddiag #devtools::install_github("mattflor/chorddiag") library(chorddiag) # Create dummy data m <- matrix(c(11975, ...
285 sym R (1923 sym/2 pcs)
DataViz: Thanksgiving
Motivation Thanksgiving is just around the corner. Let’s celebrate the best way we know how, by analyzing some festive data! I hope you have fun making graphics! Happy Thanksgiving! Dataset/Article We are using the data from fivethirtyeight the Here’s What Your Part of America Eats on Thanksgiving article https://fivethirtyeight.com/features...
2760 sym R (8953 sym/14 pcs) 2 img