As a graphic designer, I just couldn't vibe with the default colors R gives you for plotting. They're... fine, I guess? But they lack that modern, polished look. So I thought, why not use Google's Material Design Colors instead?
Now you can bring that clean, aesthetic Material Design palette into your R plots effortlessly.
You can install the package from GitHub using the devtools
package:
# Install devtools if not already installed
install.packages("devtools")
# Install materialColors from GitHub
devtools::install_github("shahriar-siham/r-material-colors")
library(materialColors)
mcolor("blue") # Returns hex code for blue color, shade 500
mcolor("blue_accent", 200) # Returns hex code for blue accent, shade 200
mcolor("red", 1000) # Returns NA and prints a warning
This package is licensed under the MIT License.