Happy to have my tutorial recreating a NYTimes graph in R posted on the R Graph Gallery!
r-graph-gallery.com/web-divergin...
@mrpecners.bsky.social
Happy to have my tutorial recreating a NYTimes graph in R posted on the R Graph Gallery!
r-graph-gallery.com/web-divergin...
New video! Recreate this viral chart by @christinezhang.bsky.social in the @nytimes.com with #rstats. youtu.be/Gjsi9yzBni0
03.08.2025 19:03 β π 12 π 2 π¬ 0 π 0New #rsats video! This is another Copy the Pros where I recreate a NYTimes chart in R. Copy the Pros: Recreate a NYTimes Chart in R
youtu.be/XihJUrDXq6s
Whatβs the opposite of Edward R Murrowβs βGood night, and good luckβ, you ask? I give you me signing off of a chart tutorial. #RStats
31.07.2025 03:50 β π 4 π 0 π¬ 0 π 0I have a #rstats #Positron question: anyone run into issues with auto-indentation, and did you fix it? Hereβs a video example of the issue, I want it to work in Positron like it does in RStudio! Iβm sure Iβm missing something.
25.07.2025 14:37 β π 3 π 1 π¬ 4 π 0New #rstats video!
Recreating a New York Times Chart in R | Line-by-line Coding Tutorial
youtu.be/HDCJIkY2ihI
I would love an #rstats function that copies a dataframe to a clipboard in a table format that I can drop in an email or chat. Anyone have tips here? I found how to copy in a delimited format, but it wasnβt coming through in a table.
21.11.2024 19:35 β π 5 π 0 π¬ 6 π 0To me, when I write it Iβm thinking: okay, starting with df1, and Iβm augmenting with df2.
Starting with the data and layering operations is more intuitive to me.
So far it looks like people prefer the first approach but suspect itβs not best practice. I definitely prefer the first but asked because I thought it would be in the minority! #rstats
20.11.2024 19:48 β π 4 π 0 π¬ 6 π 0Stirring the pot this morning: #rstats crowd, which do you prefer?
df3 <- df1 |>
left_join(df2)
OR
df3 <- left_join(df1, df2)
Thanks! Yeah you can find a lot of code in this repo: github.com/Pecners/rays...
18.11.2024 00:24 β π 1 π 0 π¬ 1 π 0Population density map of Arizona, rendered in 3d with R using the Rayshader package.
Arizona Population Density
Is #rstats a thing on here? This was made with R.
My inspiration for this map was a combination of ice and stars. Ice because, Alaska is way north, but also the reflective quality highlights the sparse population.
Stars because the sparse population centers look a bit like stars in the sky, and as a reference to Alaska's flag.
How does that 14% compare to the rest of the US? Alaska has more National Park land than the rest of the US, combined.
25.09.2024 01:49 β π 0 π 0 π¬ 1 π 0Among that surfeit of unpopulated land is a large amount of National Park land. About 14% of land in Alaska is managed by the National Park Service.
25.09.2024 01:49 β π 0 π 0 π¬ 1 π 0While there isn't much population, there's a lot of land. In fact, Alaska's land area is about equal to that of these 12 states.
25.09.2024 01:48 β π 0 π 0 π¬ 1 π 0There are just a handful of identifiable population centers. Top 3 most populous cities are visible: Anchorage, Fairbanks, and Juneau.
25.09.2024 01:48 β π 1 π 0 π¬ 2 π 0Population density map of Alaska.
Chapter 2: Alaska Population Density
Or, what population density?
Population density map of Alabama
Just started a new project to compile state population density maps in a book format. Check out my first chapter on Alabama: pecners.github.io/state_popula...
03.09.2024 02:33 β π 3 π 1 π¬ 0 π 0Population density map of Illinois, rendered in 3D with R using the rayshader package.
Population density of Illinois
10.02.2024 00:59 β π 8 π 1 π¬ 0 π 0