willgearty / deeptime

Plotting Tools for Anyone Working in Deep Time
https://williamgearty.com/deeptime/
GNU General Public License v3.0
83 stars 8 forks source link

Custom theme elements #14

Open willgearty opened 5 years ago

willgearty commented 5 years ago

I feel like this shouldn't be too difficult. Just need a way to pass a list of theme elements to theme().

willgearty commented 5 years ago

Oh, maybe we can accept some theme() object as a parameter, then just add it to the list of ggplot additions?

willgearty commented 4 years ago

Now that coord_geo exists, the focus should be on adding custom theme elements like here: https://github.com/const-ae/ggupset/blob/master/R/theme_combmatrix.R

willgearty commented 4 years ago

Could also do something using this functionality: https://ggplot2.tidyverse.org/reference/register_theme_elements.html

willgearty commented 7 months ago

Looks like this would also be a good way to tweak the font family, etc. of the interval names. See element_text arguments here: https://ggplot2.tidyverse.org/reference/element.html.