Using fonts in R graphics can be tricky at times. {showtext} aims to make it easier: https://cran.rstudio.com/web/packages/showtext/vignettes/introduction.html #rstats #dataviz #ggplot
showtext: Using Fonts More Easily in R Graphs

Find the best contrast between one color and a list of options, e.g. for labels in geom_tile: {prismatic::best_contrast()} https://emilhvitfeldt.github.io/prismatic/reference/best_contrast.html #rstats #dataviz #ggplot #colors
Find highest contrast color β€” best_contrast

best_contrast() finds the color in y with the highest contrast to the color x.

I did not know about ggplot_build() before. It can come in handy in situations where you want to access computed metrics of a #ggplot. https://ggplot2.tidyverse.org/reference/ggplot_build.html. Thanks @thedatainklab for sharing. #rstats #ci
Build ggplot for rendering. β€” ggplot_build

build_ggplot() takes the plot object, and performs all steps necessary to produce an object that can be rendered. This function outputs two pieces: a list of data frames (one for each layer), and a panel object, which contain all information about axis limits, breaks etc. The ggplot_build() function is vestigial and build_ggplot() should be used instead.

3D ggplot of parabolic great circle trajectories (i.e. ballistic-ish paths) on a non-linear Robinson projection: how do we ensure the 3D data is consistent with the underlying ggplot? Simple: we extract the coordinate transformation from the ggplot object itself!

#RStats #rayshader #ggplot

r-charts.com provides example code for a variety of chart types, both in base R and ggplot: https://r-charts.com/ #rstats #ggplot #design
R CHARTS | A collection of charts and graphs made with the R programming language

Over 1400 graphs with reproducible code divided in 8 big categories and over 50 chart types, in addition of tools to choose and create colors and color palettes

R CHARTS | A collection of charts and graphs made with the R programming language
The canvas() function from the ggview R package is very useful for previewing/tweaking a ggplot into publication-ready format: it renders a plot "as it would appear if saved to a file with the specified dimensions". cran.r-project.org/web/packages... #RStats #ggplot #ggview

README
README

#statstab #494 {ggsurvfit}

Thoughts: "eases the creation of time-to-event (aka survival) summary figures with ggplot2"

#hazard #survival #ggplot #dataviz

https://www.danieldsjoberg.com/ggsurvfit/index.html

{ggdist}: Visualizations of distributions and uncertainty https://mjskay.github.io/ggdist/ #rstats #ggplot
Visualizations of Distributions and Uncertainty

Provides primitives for visualizing distributions using ggplot2 that are particularly tuned for visualizing uncertainty in either a frequentist or Bayesian mode. Both analytical distributions (such as frequentist confidence distributions or Bayesian priors) and distributions represented as samples (such as bootstrap distributions or Bayesian posterior samples) are easily visualized. Visualization primitives include but are not limited to: points with multiple uncertainty intervals, eye plots (Spiegelhalter D., 1999) <https://ideas.repec.org/a/bla/jorssa/v162y1999i1p45-58.html>, density plots, gradient plots, dot plots (Wilkinson L., 1999) <doi:10.1080/00031305.1999.10474474>, quantile dot plots (Kay M., Kola T., Hullman J., Munson S., 2016) <doi:10.1145/2858036.2858558>, complementary cumulative distribution function barplots (Fernandes M., Walls L., Munson S., Hullman J., Kay M., 2018) <doi:10.1145/3173574.3173718>, and fit curves with multiple uncertainty ribbons.

{ggblanket}, a wrapper around #ggplot for quick, explorative plots with sensible defaults and less code. https://davidhodge931.github.io/ggblanket/ #rstats
Simplify ggplot2 Visualisation

Simplify ggplot2 visualisation with ggblanket wrapper functions.

{ggbump} creates elegant bump charts in ggplot. https://github.com/davidsjoberg/ggbump #ggplot #rstats
GitHub - davidsjoberg/ggbump: A geom for ggplot to create bump plots

A geom for ggplot to create bump plots. Contribute to davidsjoberg/ggbump development by creating an account on GitHub.

GitHub