Publications by Marilyn Macy

Data 110 Homework Assignment 1

25.01.2021

Just for grins, I went to the website of my former employer to see what kind of visualizations they had, and there were two that I found interesting. I like these visualizations because they’re simple and straight forward, they use two or three variables and they tell compelling stories across a time frame. Fannie Mae National Housing Survey T...

4250 sym 3 img

Data 110 Homework Assignment 2

29.01.2021

Load in the Dataset. Because airquality is a pre-built dataset, we can write it to our data directory to store it for later use. # install.packages("tidyverse") library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.0 -- ## v ggplot2 3.3.3 v purrr 0.3.4 ## v tibble 3.0.5 v dplyr 1.0.3 ## ...

1557 sym R (3732 sym/28 pcs) 5 img

Data 110 Unit 5 - NYCFlights13

01.03.2021

NYC Flights heatmap pacman:: p_load(nycflights13) # load required libraries pacman:: p_load(RColorBrewer) pacman:: p_load(tidyverse) pacman:: p_load(alluvial) flights_nona <- na.omit (flights) %>% # remove observations with NA values mutate(inflight_delay = arr_delay - dep_delay) # create in-flight delay column head(flights_no...

1577 sym R (5965 sym/20 pcs) 3 img

Data 110 - Unit 5 Treemaps, Heatmaps, and Streamgraphs

01.03.2021

Treemaps library(treemap) library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.0 -- ## v ggplot2 3.3.3 v purrr 0.3.4 ## v tibble 3.1.0 v dplyr 1.0.4 ## v tidyr 1.1.2 v stringr 1.4.0 ## v readr 1.4.0 v forcats 0.5.1 ## -- Conflicts ------------------------------------------ ...

1092 sym R (20968 sym/50 pcs) 7 img

Data 110 Hate Crime Tutorial Homework

15.02.2021

library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.0 -- ## v ggplot2 3.3.3 v purrr 0.3.4 ## v tibble 3.0.5 v dplyr 1.0.3 ## v tidyr 1.1.2 v stringr 1.4.0 ## v readr 1.4.0 v forcats 0.5.1 ## -- Conflicts ------------------------------------------ tidyverse_conflicts() -- #...

3192 sym R (26751 sym/43 pcs) 4 img 1 tbl

Data 101: MPG-Macy

09.02.2021

library (tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.4 ## ✓ tibble 3.0.6 ✓ dplyr 1.0.4 ## ✓ tidyr 1.1.2 ✓ stringr 1.4.0 ## ✓ readr 1.4.0 ✓ ...

4206 sym R (3821 sym/22 pcs) 5 img 1 tbl

Data 101 - Hotel bookings - data wrangling - Macy

19.02.2021

Data 101: Hotel bookings - data wrangling - Macy Marilyn Macy library(tidyverse) library(skimr) library(readr) # From TidyTuesday: https://github.com/rfordatascience/tidytuesday/blob/master/data/2020/2020-02-11/readme.md hotels <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-02-11/hotels.csv") Ex...

4217 sym R (9012 sym/21 pcs) 5 tbl

Data 110 - Unit 10 GIS

10.04.2021

Create Maps in R Setup and get New Hampshire and USGEO data # set file names and FIPS codes for NH and SC nhdatafile <- "NHD2016.xlsx" nhdatafilecsv <- "NHD2016.csv" usshapefile <- "cb_2014_us_county_5m/cb_2014_us_county_5m.shp" nhfipscode <- "33" scdatafile <- "SCGOP2016.csv" scfipscode <- "45" pacman::p_load(tidyverse, tmap, tmaptools,...

941 sym R (16842 sym/43 pcs) 7 img

Data 110 Unit 8 Homework

29.03.2021

pacman::p_load(dslabs, tidyverse, highcharter, RColorBrewer) Vaccine introduction for contagious diseases in the U.S. I was intrigued by the Measles heatmap, with the line showing the introduction of the vaccine. And I wanted to show that same effect of discrete events for each of the diseases in the us_contagious_diseases data. data("us_contagi...

1957 sym R (5821 sym/7 pcs)

Data 110 - Unit 7 Nations dataset graphs

21.03.2021

pacman::p_load(ggplot2, dplyr, plotly, readr) #load packages nations <- read_csv("C:/Users/Owner/Desktop/My Documents/School/DataFiles/nations.csv") # read nations dataset ## ## -- Column specification -------------------------------------------------------- ## cols( ## iso2c = col_character(), ## iso3c = c...

133 sym R (2236 sym/7 pcs) 2 img