Introducing editheme: Palettes and graphics matching your RStudio editor
I use RStudio every day at work. And every day my eyes say thank you to the developers for implementing themes support for the editor, and more recently a complete dark skin for the GUI. Dark themes are not only important for your health and the health of the planet. They are also absolutely essential to look cool in the office and make your colleagues believe you’re working on very complicated projects. 😀
However, one little thing could dispel the illusion in a second: an ugly, flashy graphic with a white background in your plot pane.
To solve this serious issue of my daily life I wrote editheme, a tiny package providing color palettes and functions to create graphics matching the RStudio editor. The following animated screenshot is worth a thousand words.
Read more about the package on its Github page.
8 réactions au sujet de « Introducing editheme: Palettes and graphics matching your RStudio editor »
This is great! Is there a way to set it back to the default theme? dev.off() doesn’t reverse all of the changes.
Hi! Yes you can use styles::remove_style(). Same if you use the button « Clear all plots » in Rstudio (but then you will lose your plot history).
This is soooo awesome! That white background has been annoying me for months! Thank you for making my day – just can’t stop plotting)
Is it possible to extend this on Viewer page where plotly figures appears? It would be so great)
Thank you 🙂
Unfortunately I don’t think it would be possible to change the Viewer background.
Awesome! I would love to use this at work, but for security reasons we can only access a copy of CRAN on our hadoop cluster. I would be great if you could take the effort to publish to CRAN 🙂
Hi Tim, I’m not planning a CRAN release now… maybe later but the package has dependencies which are not on CRAN, so it will be complicated for you…
Your theme is really great! Because I didn’t want to set the themes/colors each time I open RStudio I added some code to my .Rprofile. It isn’t perfect yet (e.g. base plot colors are only correct from the second plot), but maybe someone finds it useful to play with. Have you added your profile?
Hi Johannes, very nice! So far I use editheme « manually ». About editing your Rprofile, you may find this discussion useful: https://github.com/fkeck/editheme/issues/1