e61-Institute / theme61

Create graphs in the e61 Institute style
https://e61-institute.github.io/theme61/
MIT License
5 stars 0 forks source link

Update default colours when no scale_colour is specified #184

Closed aaronw22 closed 6 months ago

aaronw22 commented 7 months ago

Currently lines, bars, points are black when no scale_colour is specified.

We can change this default by adding update_geom_defaults() to .onLoad in zzz.R.

Add this code:

# Update default colour
geoms_colour <- c("point", "line", "pointrange", "errorbar", "boxplot")
lapply(geoms_colour, update_geom_defaults, new = aes(colour = e61_tealdark))

# Update default fill
geoms_fill <- c("col")
lapply(geoms_fill, update_geom_defaults, new = aes(fill= e61_tealdark))

# Update defaults for other types
update_geom_defaults("ribbon", aes(fill= e61_tealdark, alpha = 0.1))