FredHutch / scharpTemplates

An rmarkdown template for VISC.
0 stars 0 forks source link

Create a custom VISC theme for ggplot2 #11

Open wfulp opened 5 years ago

wfulp commented 5 years ago

We need to create a custom VISC theme that we can all consistently use for graphics. Parts of the theme can be overwritten as needed, but it would be nice to have the most common points as a default.

Currently the template has:

visc_theme <- theme(legend.position = "bottom", legend.margin = margin(unit = "cm"))
monicagerber commented 5 years ago

We should probably add theme_bw() too.

wfulp commented 5 years ago

We should probably add theme_bw() too.

You mean like this?

visc_theme <- theme_bw() + theme(legend.position = "bottom", legend.margin = margin(unit = "cm"))
monicagerber commented 5 years ago

Exactly!

mayerbry commented 5 years ago

Maybe we can turn of the minor grid: theme(panel.grid.minor = element_blank())

wfulp commented 5 years ago

We can also create a custom VISC ggplot scale

https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2