View source: R/theme-elements.r
rel | R Documentation |
Relative sizing for theme elements
rel(x)
x |
A number representing the relative size |
df <- data.frame(x = 1:3, y = 1:3)
ggplot(df, aes(x, y)) +
geom_point() +
theme(axis.title.x = element_text(size = rel(2.5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.