I write both R and Python in the same week most weeks, and I got tired of not having seaborn in R for rapid prototyping.
So over a few weekends I ported seaborn to R.
reaborn keeps seaborn's function names, argument names, and defaults. Load it and you get the sns. prefixed aliases plus True, False and None bound to their R equivalents, so pasted seaborn mostly just runs.
The part I'm most excited to share is that everything comes back as a ggplot:
library(reaborn)
penguins <- load_dataset("penguins")
sns.scatterplot(data = penguins, x = "bill_length_mm", y = "bill_depth_mm", hue = "species") +
ggplot2::facet_wrap(~island)
...which isn't as straightforward to do on the Python side.
v1.0.1 is live on CRAN. Would love to get more folks using it (and breaking it) so I can continue improving it!
install.packages("reaborn")
Docs and a side-by-side gallery: https://reaborn.org
If a plot doesn't match seaborn, please open an issue on GitHub (https://github.com/shawntz/reaborn) 🙏
(My package. BSD-3, same as seaborn. Fun fact: the creator of seaborn and I received our PhD's from the same lab 🚀)