atlas-aai / ratlas

Custom graphics and report generation for @atlas-aai
https://ratlas.netlify.app
28 stars 8 forks source link

Functions for globally setting the ggplot2 theme #24

Closed wjakethompson closed 4 years ago

wjakethompson commented 4 years ago

This PR will close #11. I've added some updates to the functions @noellepablo had already written. I believe the only outstanding issue is to add color arguments. Right now, calling set_theme() will automatically set discrete scales to Okabe Ito and continuous scales to viridis. These should be the defaults, but we should add arguments (i.e., discrete and continuous) that allow users to specify which scales they want to be the default.

For now, options for discrete should be okabeito, atlas, and ggplot2, where ggplot2 would use the default ggplot2 palette.

Options for continuous should be ggplot2 (i.e., the default ggplot2 scale) and the four viridis options (A, B, C, and D; see here).