rfortherestofus / omni

RMarkdown template, ggplot2 theme, and table function for OMNI Institute
https://rfortherestofus.github.io/omni/
Other
21 stars 4 forks source link

Create functions to set defaults (e.g. font family) on geoms and restore them to defaults #49

Closed dgkeyes closed 9 months ago

dgkeyes commented 9 months ago

See discussion in #48

tvroylandt commented 9 months ago

@LibbyHeeren , feel also free if you want to try this one. Otherwise I'll just do it

LibbyHeeren commented 9 months ago

@tvroylandt, I think I better focus on the omni resources site for right now.

@dgkeyes, will I need to update all of the plots and the guidelines to include the use of changing text defaults instead of setting the font family and size inside of geom_text?

dgkeyes commented 9 months ago

@dgkeyes, will I need to update all of the plots and the guidelines to include the use of changing text defaults instead of setting the font family and size inside of geom_text?

Yes, we will need to update that. Don't worry about it for now. We can come back to it later on.

tvroylandt commented 9 months ago

This should be good @LibbyHeeren

Just use set_omni_defaults/ggplot_defaults to setup/unsetup defaults.

Please close that if you are ok with them. Feel free to adjust the parameters in it, apart from fonts and colors, I kept the rest from another project