theme_correlaid | R Documentation |
A theme based on the CorrelAid design guide
theme_correlaid(
base_size = 14,
base_family = "Roboto",
base_line_size = base_size/28,
base_rect_size = base_size/28,
grid = "XY"
)
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 |
grid |
A string: panel grid ("none" or a combination of X, x, Y, y) |
Uses the font family Roboto. If Roboto is not installed, the system's default (sans-serif) font is used.
A theme
object
library(ggplot2)
library(showtext)
showtext_auto() # Necessary for certain graphics devices to display the custom font
ggplot(mtcars, aes(wt, mpg)) + geom_point() + theme_correlaid()
ggplot(example_projects_labels, aes(category)) +
geom_bar() +
labs(title = "Title", subtitle = "Subtitle", caption = "Caption") +
theme_correlaid() +
add_correlaid_logo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.