Blog

Goodbye Apero, Hello Book

December 10, 2023
Hugo, themes

You may have noticed a pretty dramatic appearance change to this site. I made leap from the wonderful Hugo Apero theme over to the Book theme. The former is well suited to academics with insight to share. The latter is oriented towards documentation. Why the change? # As I reflected on what was actually making it to my site, I realized the bulk of the content was really just a bunch of rough notes. ...

The Fall of Silicon Valley Bank

March 10, 2023
visualization
R, ggplot2

I imagine that the fall of Silicon Valley Bank caught many of us by surprise. At the time of this writing, there’s a whole lot of uncertainty about what that means for many of us in the technology space. In the meantime, here’s a cat. library(tidyverse) library(gganimate) library(ggcats) # remotes::install_github("R-CoderDotCom/ggcats@main") library(hrbrthemes) library(tidyquant) library(gifski) symbol <- "SIVB" stock <- tidyquant::tq_get(symbol, get = "stock.prices", from = "2021-10-01", to = "2023-03-10") head(stock) ## # A tibble: 6 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 SIVB 2021-10-01 650 670. ...

Life Expectancy Across the World

February 25, 2023
visualization
ggplot2, scraping

I came across an interesting dataset on life expectancy for different countries on Worldometer, and thought that might make for some interesting visualizations. First, I need to get ahold of the data, which is embedded in a web-page and isn’t in an immediately downloadable form. I’ll have to do some web-scraping. Fortunately, there’s rvest for that task. The essential set of packages include: library(tidyverse) library(rvest) library(hrbrthemes) Data # Let’s grab the data. ...

Fancy LinkedIn Code Snippets

February 15, 2023
code

Over the last few days, I’ve found myself doom-scrolling LinkedIn quite a bit. Soooooooo many “I’ve been laid off” posts. Oof. In between all the sad news though, I started noticing a lot of fancy looking images of code snippets. Those code snippets were presented in pleasant color palettes, clean and readable fonts, and were color graded appropriately based on the programming language. I thought to myself, Ooh, that’s so fancy. ...

A CATastrophic year

January 30, 2023
visualization
R, ggplot2

2022 was a rough year for the stock market. CATastrophic, one might say. library(tidyverse) library(gganimate) library(ggcats) # remotes::install_github("R-CoderDotCom/ggcats@main") library(hrbrthemes) library(tidyquant) library(gifski) symbol <- "^GSPC" stock <- tidyquant::tq_get(symbol, get = "stock.prices", from = "2022-01-01", to = "2022-12-31") head(stock) ## # A tibble: 6 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 ^GSPC 2022-01-03 4778. 4797. 4758. 4797. 3831020000 4797. ...

When Inflation Outpaces Real Income

January 18, 2023
visualization
R, economics

There’s a trove of rich economic data on the Federal Reserve Economic Data (FRED) website, including data on inflation and real wages over time. How well has real wages kept pace with inflation – the cost of living – over time? Let’s turn to our good old friend Data Visualization to get a grasp on the matter. As always, first, let’s load up some essential packages. library(tidyverse) library(ggplot2) library(hrbrthemes) Then, let’s grab some data, including: ...