Skip to content
R for the Rest of Us Logo

What's New in R: January 29, 2024

David Keyes David Keyes
January 29th, 2024

I’m back, sharing some more new(ish) resources with you.

Want to get this in your inbox? Sign up for What's New in R.

Stop making messy line charts and create meaningful plots instead

The first is a great video from Albert Rapp (who also makes videos on the R for the Rest of Us YouTube channel) showing how to stop making spaghetti charts like these:

An ugly spaghetti chart

And instead make easy to comprehend, meaningful line charts like these:

A nicely formatted line chart using the gghighlight package

The video shows several tips, including how to use the {gghighlight} package. Check it out!

{babeldown} package

You may think of R as a tool for working with quantitative data, but it can also do a fair amount with qualitative data. Ever receive qualitative data that you need to translate? The {babeldown} package, developed by Maëlle Salmon, can do this for you automatically. Relying on the DeepL translation tool, {babeldown} can convert text to and from 31 different languages. In the past, I’ve used the {googleLanguageR} package to do this type of translation. {babeldown} looks even simpler.

Sample code to translate a string from English to Spanish

Convert a Word table to Markdown

There is a group of what I think of as quirky R package developers. One of these is Matt Dray (he describes his website as “Fun and learning with R, usually off-piste”). Dray has a post laying out how he developed code to take tables in Microsoft Word and convert them to Markdown with a package he calls {wordup}. If you ever receive tables in Word documents that you want to put into Quarto or RMarkdown documents, you might be interested in this!

I hope you enjoyed this issue of What’s New in R. Got any ideas for resources I should feature in future issues? Comment below!

Want to get this in your inbox? Sign up for What's New in R.

Let us know what you think by adding a comment below.

You need to be signed-in to comment on this post. Login.