mediocrethemes

R Data viz ggplot Package

I made a small R package providing ready to use ggplot themes. Setting the theme for all graphs in a project only requires one short line of code.

medoiocrethemes is a small R package providing ready to use ggplot themes that are, in my opinion, not strikingly nice but, hopefully, not strikingly ugly either (hence the name of the package). More info and vignettes to get familiar with the package can be found on the package website.

To me, the function set_mediocre_all() is the most useful feature of my package. When called at the beginning of the code, all subsequent graphs will be created using the new theme, without any additional line of code. This function enables users to easily depart from the nice but too often seen base ggplot theme and color scheme.

I tried my best to make my code reproducible. Users should be able to easily adapt my code to create their own theme and color scheme. The code for this package can be find on the GitHub page of the package.

The base color palette is:

Here are a couple of example plots build using the theme and main color scale. A lot more graphs and color scales can be seen on the package website.

I also created a xaringan slide template in a style consistent with mediocrethemes:

This is a simple an application of the xaringanthemer package and can be very easily set up with the function mediocrethemes::xaringan_mediocre(), as explained in this vignette.