Dear subscriber,

thank you so much for your interested in DictionR! DictionR has so far received a much stronger demand than what I anticiped — which is definitely great news. As I promised during the launch three weeks ago, DictionR is evolving fast and the first issue of this update will demonstrate it.

From now on, you'll regularly receive updates like this one. They are designed to keep you updated on the new features and resources I've added to DictionR. You'll receive at most an update a month — it's neither in your interest or mine to spam you.

May 2022 has been a robust month for DictionR in terms of new features. I published the first guide and you now have an option to receive an email notification every single time I add a new snippet. I also simplified the URLs.

In terms of resources, as promised in the upcoming snippets page I've added snippets related to plotting — mostly related to legends in ggplot2. The new snippets only cover a small part of ggplot2 so there's a lot more to come. The snippet #62 will probably be the most used of the bunch.

You can find more details on these new features and new resources below.

If you know somebody who might be interested in DictionR, I would appreciate if you can forward them this update — or tell them about DictionR. I'm an independent economist and data scientist — which means I rely on word-to-mouth to turn DictionR into a success. Thanks!

Olivier


As of the 31th of May 2022, I have published 79 resources on DictionR: 78 snippets and 1 guide. It's +20 snippets (+35%) and +1 guide compared to the previous month.

New features

Guides

Guides are probably the most important new feature of May 2022. Guides are pages where I organize all DictionR snippets related to a specific topic.

@guides - DictionR
Guides are designed to help you navigate R and DictionR

The first guide is focused on legends in ggplot2 — which are not always easy to work with, in part due to the complexities and confusing langage of ggplot2.

Legends in ggplot2
Discover how to work with legends in ggplot2 in R

More guides will follow soon.

Email notifications for every single new snippet

If you want to receive an email notification for every single new snippet I add to DictionR, it's now possible!

Considering it's a feature with potentially a pretty high volume of emails, these notifications are deactivated by default. To activate them, go to My account > Newsletters > Manage.

Please be aware that if the snippet page is updated, you will not receive a new email. You should really treat these emails as notifications, not copies of the actual snippet page.

URLs

I simplified the structure of the URLs of the snippet pages. The URLs now only display the snippet ID instead of a trimmed down version of the snippet title.

  • Before: https://dictionr.aleryon.science/force-linebreak-text
  • After: https://dictionr.aleryon.science/62

The new format is easier to use (for you and me) and to setup (for me). It will also allow me to update more easily the snippet title without creating a gap between its title and its URL.

I have already converted the URLs of the published snippets to the new structure. I also set up redirections, so you don't have to worry about your bookmarks and links — you'll be automatically redirected from the one URL to the new one.

What I'm working on

  • A (paginated) list of all the snippets
  • A better way to display which library to load for a given snippet
  • More guides
  • Cheatsheets
  • Minor rebranding
  • Better pagination

Stay tuned!


New snippets

Get the geographical coordinates of a location · #59
Discover how to get the geographical coordinates of a location in R
Display all Brewer color palettes · #60
Discover how to display all Brewer color palettes in R
Use a Brewer color scale · #61
Discover how to use a non-default Brewer color palette in R
Get the name of built-in colors · #62
Get the name of built-in colors in R
List the name of all the built-in colors · #63
Discover how to list the name of all the built-in colors in R
Convert a color from its name to HEX code · #64
Discover how to convert a color from its name to HEX code in R
Hide the legend in a plot · #65
Discover how to hide the legend in a plot in R
Add a title to a plot · #66
Discover how to add a title to a plot in R
Add a subtitle to a plot · #67
Discover how to add a subtitle to a plot in R
Change multiple labs() elements in a plot · #68
Discover how to change multiple labs() elements in a plot in R
Change the axis labels in a plot · #69
Discover how to change the axis labels in a plot in R
Add a caption to a plot · #70
Discover how to add a caption to a plot in R
Change the title of a legend · #71
Discover how to change the title of a legend in R
Combine multiple legends in the legend · #72
Discover how to combine multiple legends in the legend in R
Hide a legend in the legend · #73
Discover how to hide a legend in the legend in R
Move the legend around a plot · #74
Discover how to move the legend around a plot in R
Change the justification of the legend · #75
Discover how to change the justification of the legend in R
Change the justification of multiple legends in the legend · #76
Discover how to change the justification of multiple legends in the legend in R
Change the direction of multiple legends in the legend · #77
Discover how to change the direction of multiple legends in the legend in R
Change the direction of items in a legend · #78
Discover how to change the direction of items in a legend in R