Hey #rstats! I'm excited to announce that my first package, the #ggplot extension ggh4x is now available on #CRAN 📢! cran.r-project.org/web/packages/g…. Thanks to everyone putting package development tutorials out there and the ggplot2 team for the extension mechanisms! 🧵
The package is mostly a collection of convenience functions I've accumulated over time, so it might be a bit chaotic. Hopefully it can be convenient to you too! Examples below:
Get rid of duplicated strip labels in multi-layered facets with `facet_nested()`:
Change the absolute or relative sizes of panels to your liking
Simple but effective coloured string legends
Aspect ratio aware base-R `type = "b"` style points/path hybrid
Text rotated towards a point in the plot, convenient for labelling in polar coordinates
Provide a 'hclust' object to dendrogram scales, with help from the ggdendro package.
Discrete axis with group membership indicators
Tick marks for minor breaks and log scales
Fitting theoretical distributions with fitdistrplus with similar ease as `stat_density()`
Very much related to rolling means: rolling kernels to indicate trends
Control over the position scale of individual panels
Want to see more examples or the code to generate the plots above? Check out the vignette article section at: teunbrand.github.io/ggh4x/index.ht…
• • •
Missing some Tweet in this thread? You can try to
force a refresh