[OC] Birthplaces of Active NHL Players

Posted by haydendking

16 Comments

  1. Source: NHL API accessed in R

    library(httr)
    library(jsonlite)
    library(dplyr)

    url <- “https://search.d3.nhle.com/api/v1/search/player?culture=en-us&limit=50000&q=*&active=true”

    players <- GET(url) |>
    content(“text”, encoding = “UTF-8”) |>
    fromJSON(flatten = TRUE) |>
    as_tibble()

    players <- players |>
    transmute(
    player_id = playerId,
    name = name,
    birth_city = birthCity,
    birth_state = birthStateProvince,
    birth_country = birthCountry
    )

    Tools: R (packages: dplyr, ggplot2, sf, usmap, tools, ggfx, grid, cowplot, scales, cowplot, showtext, sysfonts, colorspace)

  2. North American players, I guess. There’s a lot of Europeans in the league that aren’t represented here.

  3. Looks like a lot of the American metro areas are being undercounted because suburbs are treated as individual cities. The Twin Cities, for instance, has a large group of overlapping counts whereas it looks like Toronto’s metro is considered as a unit. Any clarity you can provide?

  4. Wow, that bump over St. Louis is an outlier. I assumed part of it was the Tkachuks, but they were born in Scottsdale and raised in StL.

  5. I feel like you can see the influence of the Solar Bears and the RDV Sportsplex in the large Orlando dot where there isn’t even an NHL team

  6. This is cool. I also remember reading something about the months in which professional hockey players were born. The hypothesis being that when you’re older in your age group, you hit your growth spurt before the other kids growing up, and because you’re a bigger kid, you get more ice time, which could contribute to being a better player?

  7. Not being super familiar with Canadian geography I was confused in what US state that high number of players were born in.

    Still blows my mind how there’s a place in California that’s more north than a place in Canada.

  8. No one will notice or care, but I had the privilege to be the home builder for the one tiny dot in South Dakota. First NHL player from SD!

  9. No Stanley Cup in 32 years. No Olympic gold, either.

    Canada may have invented the greatest game on earth, but we’ve perfected it. America rules hockey! 🇺🇸

  10. Great to see 2 Houston area players, more considering the amount of ice/snow we have around here. Surely they lived north after born in the south

  11. I’m trying to figure out who the second North Eastern British Columbia hockey player is, I know one is Tristen Nielsen from Fort St. John, but I am seeing no one else from that area who is currently active.