The {ggautomap} #rstats 📦 “provides #ggplot2 geometries that make use of cartographer, a framework for matching place names with map data. With ggautomap your input dataset doesn’t need to be spatially aware: The geometries will automatically attach the map data (providing it’s been registered with cartographer).” https://cidm-ph.github.io/ggautomap/index.html
By Carl Suster, on CRAN #RSpatial#GIS@rstats
I’m done cross-posting @elementary to Twitter. I really hoped it would get better, but with the latest news of Elon promoting Ron DeSantis’ presidential run, I’m done. It’s become a far-right social network no different from Parlor or Truth Social and I won’t be a part of it.
@danirabbit Big hugs. I left 20K followers in the #rstats world behind over there when I made the same call a while back. It’s scary. I hope folks are supportive. ❤️
When you struggle with theme()-arguments in {ggplot2}, you may like {ggeasy}, offering shortcuts to plot customization https://github.com/jonocarroll/ggeasy (worth visiting just bc of the hilarious cartoon)
I am skeptical when a package promises to make plotting easier because you have to remember the arguments you are looking for in either case. Here, however, I can see the added value for some arguments #rstats#dataviz@rstats
What does the network of people with common package contributions look like?
And much more!
There are also interactive {gt} tables so you can browse contribution and package statistics; and I’ve shared the data so you can explore your own questions. Enjoy!
The goal was to learn about applying splines to a circle for the polygon chapter, but splines are too hard for my brain right now, so this resulted instead. Forever searching for less computationally heavy ways to make space 🌃 #rtistry in #rstats w/ geom_polygon() & geom_point()
I've made a lightweight glossary #rstats package for quarto and R Markdown documents. You just tag words in your text like r glossary("term") and create a glossary table at the end of the section with glossary_table(). The definitions can be set in each glossary() function, or pulled from a YAML file.
I'm hoping to submit to CRAN soon, but would love if anyone had time for a quick test and feedback.
I wrote a thing. Again. I'm sorry. But also, the santoku #rstats package is a very nice solution to a problem that some of us have. Discretising a continuous variable is weirdly painful, and it's nice to have computational tools that get out of your way and let you think about what you want to do with your data
Trying something different. Again. A map of Japan's shinkansen network as of 2015. If you know an updated source, please let me know. Like the Interstate 5 map, the camera angle and hovering lines may give the impression that they are off; they are not. 😅
Helped someone debug some tidyverse data processing issues. It turns out "NA" was a legitimate code used in their data and readr by default interprets it as NA, not a string. Careful folks! #rstats
Edit: for anyone who doesn't know, read_csv() has an na parameter. The default is na = c("", "NA"). Setting it to na = "" fixed the issue.
like most human skilled activities, both should be done by people who are knowledgeable (often not the same person), whatever tool they use.
But some tool are usually better than other.
After 30+ years in the profession, I can tell you that using a programming language like #rstats provides at least a much better and reproducible workflow than any other C&P tool that you can think of, and if you think otherwise it's only because you're like a stakeholder in SAS 😉
@odr_k4tana@sharoz
in some ways the raise of the #tidyverse sect has funnelled as side effect a general less knowledge of #rstats When I see people call readr::read_rds instead of readRDS I just despair
Since it was super tough to understand how R's protection mechanism can work with Rust, I wrote a blog post before I get burned out completely🔥 #rstats
I'd totally forgotten about this quirk of #rstats functions: arguments are not evaulated until they are used, so if argument b defaults to the value of argument a, you need to use argument b in the code before you make any changes to a (or of course don't change a)
((I spent half an hour debugging something due to this today))
x <- function(a, b = a) {
a = 1
return(b) # first use of b sets the value b = a = 1
}
x(2) # returns 1
y <- function(a, b = a) {
b # sets the value of b = a = 2
a = 1
return(b)
}
#rstats package {crul} 1.4 is on CRAN. It comes with many new features, I'm really excited about retry on Async requests. Thanks again @sckottie for the all the work on this package.