Happy to have my tutorial recreating a NYTimes graph in R posted on the R Graph Gallery!
r-graph-gallery.com/web-divergin...
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
New #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
I 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.
New #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.
To 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
Stirring 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...
Population 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.
Among 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.
While 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.
There are just a handful of identifiable population centers. Top 3 most populous cities are visible: Anchorage, Fairbanks, and Juneau.
Population 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...
Population density map of Illinois, rendered in 3D with R using the rayshader package.
Population density of Illinois