Skip to contents

A selection of themes that fit with the ucsc branding instructions.

Usage

theme_ucsc(base_size = 11.5)

theme_ucsc_dark(base_size = 10)

theme_ucsc_void(base_size = 10)

theme_ucsc_dark_void(base_size = 10)

Arguments

base_size

text size

Details

You should import_roboto() first and also install the fonts on your system before trying to use this theme.

  • theme_ucsc - base theme for ucsc

  • theme_ucsc_dark - dark/inverted version of base theme

  • theme_ucsc_void - base theme without axis information or grid

  • theme_ucsc_darl_void - dark/inverted theme without axis information or grid

Examples

if (FALSE) {
library(ggplot2)

ggplot(mtcars, aes(mpg, disp, colour = cyl)) +
  geom_point(size = 5) +
  theme_ucsc()

ggplot(mtcars, aes(mpg, disp, colour = cyl)) +
  geom_point(size = 5) +
  theme_ucsc_dark()

ggplot(mtcars, aes(mpg, disp, colour = cyl)) +
  geom_point(size = 5) +
  theme_ucsc_void()

ggplot(mtcars, aes(mpg, disp, colour = factor(cyl))) +
  geom_point(size = 5) +
  theme_ucsc_dark_void()
}