custom_themes | R Documentation |
These are custom ggplot2
themes which control all non-data display. They
may further tweak components of these themes using ggplot2::theme()
.
theme_miplicorn(
base_size = 10,
base_family = "",
base_line_size = base_size/22,
base_rect_size = base_size/22
)
theme_rainbow(
base_size = 12,
base_family = "",
base_line_size = base_size/22,
base_rect_size = base_size/22
)
base_size |
Base font size, given in pts. |
base_family |
Base font family. |
base_line_size |
Base size for line elements. |
base_rect_size |
Base size for rect elements. |
A ggplot2 theme.
data <- tibble::tibble(
gene = c("atp6", "k13", "dhps"),
coverage = c(10, 100, 50)
)
p <- ggplot2::ggplot(data, ggplot2::aes(x = gene, y = coverage, fill = factor(gene))) +
ggplot2::geom_col()
p + theme_miplicorn()
p + theme_rainbow()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.