Maximizing information while minimizing clutter is key to a great figure. In this post, I cover my approach for various figures throughout the years.
Read more: mattkmiecik.substack.com/p/my-favorit...
#rstats #dataviz #science #publishing
@mattkmiecik.bsky.social
Neuroscientist studying Parkinson's disease | check out my #rstats website: https://mattkmiecik.com/
Maximizing information while minimizing clutter is key to a great figure. In this post, I cover my approach for various figures throughout the years.
Read more: mattkmiecik.substack.com/p/my-favorit...
#rstats #dataviz #science #publishing
Certainly! I wouldn't recommend going to GUI if the data will change.
14.06.2025 19:32 β π 2 π 0 π¬ 0 π 0Yes! Don't get me wrong, everything is possible in ggplot2 and it's extensions. But I've found it nice to polish off figures in a GUI when at the final stages or experimenting with different aesthetics/placement, etc.
14.06.2025 16:32 β π 2 π 0 π¬ 2 π 0ggplot2 is powerful, but not always pretty. π¬
Thatβs why I use Omnigraffle for final figure touchesβcleaner legends, custom labels, and full control over design.
Full workflow here: mattkmiecik.substack.com/p/using-omni...
#rstats #dataviz #omnigraffle #ggplot2
Just dropped a new #rstats Substack post!
Itβs about a better way to scale variables in R that wonβt break predict() (and keeps your model inputs traceable).
mattkmiecik.substack.com/p/scaling-va...
#Tidyverse #DataAnalysis
Great, thanks!
11.06.2025 03:10 β π 2 π 0 π¬ 0 π 0Is there a formal way to give yourself permission or is this implied by CC-BY?
11.06.2025 02:41 β π 1 π 0 π¬ 1 π 0Z-scoring in R? Thereβs a neat way to retain the original mean and SD after using scale(). This makes back-transforming for plots super easy.
Full example: mattkmiecik.substack.com/p/scaling-va...
#rstats #Reproducibility #CodingTips
Scientific writing has trapped me in Word & Google Docs. For personal writing, I needed something better. Ulysses is that something. Clean, simple, and dare I say... fun?
Hereβs why I love it:
βοΈ mattkmiecik.substack.com/p/i-started-...
#WritingCommunity #TechTools #MacApps #ProductivityHacks
π¨ Big milestone for Rdatasets π¨
The web archive now hosts 3400+ free and documented CSV datasets. Fantastic for teaching and testing!
And {Rdatasets} is a new #RStats π¦ for easy download and search
Web archive: vincentarelbundock.github.io/Rdatasets
R π¦: vincentarelbundock.github.io/Rdatasetspkg
I used to wrap scale() in as.numeric() and call it a day. Now I know better: drop() preserves attributes and behaves cleanly.
Full walkthrough (with mtcars, lm, ggplot2): mattkmiecik.substack.com/p/scaling-va...
#rstats #DataViz #OpenScience
Personally I prefer using datawizard::standardize(), and specifically using it *in the formula*.
So
mtcars$hp_z <- scale(mtcars$hp)
mpg ~ hp_z
Becomes
mpg ~ standardize(hp)
This solves both issues you raise in your post.
#rstats @easystats.bsky.social
Nice! Thanks for commenting about datawizard::standardize(). It looks like a great solution π
04.06.2025 20:07 β π 0 π 0 π¬ 0 π 0Scaling variables in R? scale() is powerful β but its default behavior can mess with predict().
Hereβs a clean fix using drop() + how to retain scaling attributes for later.
mattkmiecik.substack.com/p/scaling-va...
#rstats #DataScience #Statistics
This has to be the best #rstats hex sticker I've ever seen
03.06.2025 05:27 β π 7 π 1 π¬ 1 π 0Here's one in the other direction! mattkmiecik.substack.com/p/my-start-w...
02.06.2025 01:06 β π 0 π 0 π¬ 0 π 0nice
29.05.2025 23:48 β π 2 π 0 π¬ 0 π 0Too funny! π€£
27.05.2025 19:56 β π 1 π 0 π¬ 0 π 0One of my favorite tricks Iβve learned from ChatGPT: better facet labels in ggplot2.
Check out the latest post: mattkmiecik.substack.com/p/labeling-f...
#rstats #ggplot2 #dataviz
Adding labeller = label_both to your facet calls in ggplot2 can massively improve figure readability! I wrote a quick blogpost with a use case and some examples.
mattkmiecik.substack.com/p/labeling-f...
#rstats #ggplot2 #VisualizationTips #dataviz
Most applications in R run pretty quickly. But these days, many R users are faced with huge datasets and/or long-running applications, making parallel computation attractive. π§΅ 1/
21.05.2025 02:37 β π 25 π 9 π¬ 1 π 0Struggling with confusing facet labels in ggplot2? I just shared a quick fix that makes your plots clearer using labeller = label_both.
mattkmiecik.substack.com/p/labeling-f...
#rstats #dataviz #ggplot2 #DataScience
R is full of surprisesβeven after a decade, Iβm still learning simple but powerful tricks. Named vectors are my latest discovery, thanks to ChatGPT!
mattkmiecik.substack.com/p/named-vectors-in-r
#RStats #Learning #ChatGPT #Dataviz
Thank you so much Ben! I'm looking forward to giving these a read
16.05.2025 22:49 β π 0 π 0 π¬ 0 π 0Will do! Thanks again
16.05.2025 04:49 β π 2 π 0 π¬ 0 π 0Thanks Norm! I recently discovered the Tweedie distribution; this has really improved things for some of the data I am working with
16.05.2025 04:41 β π 0 π 0 π¬ 1 π 0Great, thank you! Would you recommend any texts about what sort of distributions are available and how to interpret the resultant coefficients?
15.05.2025 22:08 β π 1 π 0 π¬ 1 π 0I'm looking for literature recommendations on guidance for specifying distributional assumptions in generalized linear/additive models. I've mainly stuck with gaussian and binomial distributions, but am looking to explore other distributions to enhance specification. Thank you! #rstats
15.05.2025 17:50 β π 2 π 1 π¬ 2 π 0