Publications by Sherlyn Hilton

Extra Credit R & Rmarkdown

25.09.2023

Mapping with R A cool thing I learned this summer was how to use R to do GIS analysis. This is a bit of code from a class assignment. We’ll look at data from countries around the world. The data is found in countries.shp, which is a global shapefile with various socio-economic indicators for different countries such as: Median GDP: (gdp_md_e...

1398 sym R (2933 sym/10 pcs) 4 img

Lecture 4 - Regression

21.09.2023

Regressions Part 1 Build a regression model that predicts income using height, weight, and age as the predictors. First step, is to load in the data and take a look at what we’re dealing with. #Load the packages library(rrcov) library(Hmisc)#makes the histograms library(corrplot) library(RColorBrewer) library(ggplot2) # load data from fi...

2535 sym R (6526 sym/12 pcs) 2 img

Lecture 2 - Stat 6003

09.09.2023

Penguins and T-tests #Install and load packages library(tidyverse) library(stats) library(rrcov) library(readxl)#Reads excel data Part 1. Use tidyverse to create a summary dataset that shows the average of bill_length_mm, bill_depth_mm, and flipper_length_mm by species df <- read_excel("homework_2_penguins.xlsx") # copy original data into ...

1118 sym R (4868 sym/14 pcs) 3 img

Stat 6003 - Lab 1

05.09.2023

Use the oswego.csv dataset to find the bad food served at the community lunch. The first step is to load the information into a dataframe, change the appropriate columns to categorical data, then do fourfold plots for all the different foods. library(stats) library(dplyr) oswego <- read.csv("homework_1_oswego.csv") # only use data about pat...

1276 sym R (2177 sym/24 pcs) 14 img

GEOG 6680 - Project

20.06.2023

library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(ggplot2) library(gridExtra) ## ## Attaching package: 'gridExtra' ## The following object is masked f...

10446 sym R (16717 sym/50 pcs) 11 img 1 tbl

Module 15

12.06.2023

tmap package tmap is used for making nice maps that layer in ways similar to ggplot2. tmaps use spatial objects for the data, geometries and symbols are then layered on top. The first example is looking at data for Syracuse, NY. library(tmap) ## The legacy packages maptools, rgdal, and rgeos, underpinning this package ## will retire shortly. Ple...

844 sym R (5697 sym/34 pcs) 7 img

GEOG 6680 - Module 12

11.06.2023

Exercise 1 In the zipfile countries.zip is a global shapefile with various socio-economic indicators for different countries. Load this file into R and make plots of any two of the following variables (the variable names are given in brackets). Try different color scales and transformations of the data to get the most informative maps Median GD...

1541 sym R (4569 sym/31 pcs) 5 img

GEOG 6680 - Module 11

10.06.2023

Read in the data using fread library(data.table) library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:data.table': ## ## between, first, last ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:ba...

740 sym R (5724 sym/27 pcs) 1 img

GEOG 6680 - Module 10

09.06.2023

Exercises Read in the enrollment data. Look at the data structure library(ggplot2) unm <- read.csv("enrollmentForecast.csv") str(unm) ## 'data.frame': 29 obs. of 5 variables: ## $ YEAR : int 1 2 3 4 5 6 7 8 9 10 ... ## $ ROLL : int 5501 5945 6629 7556 8716 9369 9920 10167 11084 12504 ... ## $ UNEM : num 8.1 7 7.3 7.5 7 6.4 6.5 6.4 6....

3823 sym R (3860 sym/21 pcs) 7 img

Module 9

09.06.2023

library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union Exercises Make up a vector of 50 random Legolas actors, with mean height of 195cm, and a standard deviation ...

3234 sym R (3756 sym/24 pcs)