View source: R/theme_significance.R
theme_significance | R Documentation |
Custom ggplot theme
theme_significance(
family = "Source Sans Pro",
base_size = 13,
hjust = 0,
text_col = "black",
bg_col = "white"
)
family |
Font used for all text elements. Default "Source Sans Pro". |
base_size |
Base font size for text elements. Default 12. |
hjust |
Horizontal alignment of title, subtitle, and caption. Default 0. |
text_col |
Text colour. Default "black". |
bg_col |
Background colour. Default "white". |
A ggplot2 theme
library(ggplot2)
ggplot(data = mtcars, aes(x = mpg, y = disp, color = wt)) +
geom_point() +
theme_significance()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.