About Me

Photograph of a woman smiling while writing in a notebook and looking at a desktop monitor.Hi, I’m Haley. I’m a Data Scientist at the National Center for Ecological Analysis and Synthesis (NCEAS) located at UC Santa Barbara. Currently, I’m collaborating with an interdisciplinary team working to understand the environmental justice implications of global food trade. More broadly, I am interested in leveraging data to understand patterns and answer questions. I work towards achieving these objectives through data wrangling, statistical analyses, and data visualization primarily in the programming language R. In my spare time, you can find me at the beach running around with my dog Moose (she’s from Alaska). The beach is her favorite place and who could say no to that adorable face?

Experience

Photograph of a golden retriever wearing glasses shaped like pineapples.

Select Publications

  • Fox, H.K., Swearingen, T.C., Molina, A.C., 2022. An interrupted time series approach to assess Marine Protected Area impacts on recreational fishing license sales. Aquatic Conservation Marine and Freshwater Ecosystems. (Article link)
  • Fox, H.K., Swearingen, T.C., Molina, A.C., Kennedy, C.M. 2022. Oregon recreational fishers’ knowledge, support, and perceived impacts of marine reserves. Ocean and Coastal Management 225:106241. (Article link)
  • Fox, H.K., Swearingen, T.C., 2021. Using a difference-in-differences and synthetic control approach to investigate the socioeconomic impacts of Oregon’s marine reserves. Ocean and Coastal Management 215:105965. (Article link)

Tutorials

Screenshot of a website with a map of Oregon titled Total Subisidies, Oregon, 2012 on the left panel. On the right panel is the HTML source code for the website.
  • A tutorial on web scraping data (US agricultural subsidies) from interactive maps using the {rvest} and {usmap} packages.
Screenshot of a gif that shows a map of the total agricultural subsidies received in each United States county in 2019.
  • A tutorial on creating animated maps of agricultural subsidies in US counties using the {usmap} and {gganimate} packages.
Lollipop chart showing the average number of guesses it takes to guess the Wordle word each day of the week.
  • A tutorial on scraping data from websites using {rvest}, downloading tweets using the Twitter API and {rtweet}, and visualizing Wordle-related data using a scatterplot, lollipop chart, word cloud, and stacked barplot.
Five maps of the United States with the number of cows per county for the years 1997, 2002, 2007, 2012, and 2017 shown in blue.
  • A tutorial on mapping changes in the number of cows in U.S. counties over time, adding an image to a plot, and using {facet_wrap} to plot multiple maps.

Shiny

Screenshot of a website with a panel on the left where you can adjust dog traits, such as good with other dogs, on a scale from one to five. The panel on the right includes a table which shows which breeds of dogs meet the criteria selected.
  • Code for an interactive shiny dashboard looking at dog breeds, traits, and poularity. This dashboard can be useful for people considering getting a dog and wanting to find out more about specific breed's traits and which breed might best suit their lifestyle.

Data Visualizations

Line plot of predicted probabilities and 95% confidence intervals from a logistic regression. Plot shows how the probability that a bigfoot encounter will be classified as class A or B increases with increasing visibility. Some states, like Texas, have more encounters classified as Class A across all ranges of visibility than other states like California.
  • Code to run a logistic regression for bigfoot encounter classifications and plot predicted probabilities and 95% CI of significant predictor variables.
A scatterplot showing the number of pieces in Lego sets over time. There are three photos of specific lego sets highlighted, one from 1949 that involves a town, one from 1980 that involves a train, and one from 2015 that involves Chima characters.
  • Tidy Tuesday code to create a scatterplot showing the number of pieces in Lego sets over time using the {PrettyCols} package.
A circular word cloud with the most frequent words being rstats and rstudioconf.
  • Code on interacting with the Twitter API using {rtweet} to scrape tweets with #Rstudioconf2022 and making a wordcloud with {wordcloud}.
Two bar graphs, the top one for Dwight Schrute and the bottom one for Jim Halpert, with character traits on the y axis and percents on the x axis. Percents are the percent of people that attribute that character traits to that character.
  • Tidy Tuesday code to create a plot of character traits from members of the TV show, The Office.
Line graph that has ferris wheel names on the y axis and number of days on the x axis which shows how many days it takes to recoup ferris wheel construction costs. The end of each line is a ferris wheel icon.
  • Tidy Tuesday code to create a plot with data from {ferriswheels} showing the length of time required to recoup ferris wheel construction costs.