Description Usage Arguments See Also Examples
View source: R/ggplot_themes.R
Provides a clean, light theme, aesthetic for ggplot
1 2 | db_light_theme(base_size = 12, base_family = "Open Sans",
base_line_size = base_size/22, base_rect_size = base_size/22)
|
base_size |
Size of text. Defaults to 11 |
base_family |
Font family. Defaults to Open Sans |
base_line_size |
Line size |
base_rect_size |
Size of rectangles |
Other theme: db_dark_theme
1 2 3 4 5 6 7 8 9 10 11 | library(datasets)
data(iris)
ggplot(iris, aes(x=Sepal.Width, y=Sepal.Length, color=Species)) +
geom_point() +
labs(title="Sepal Height vs. Sepal Width",
subtitle='Iris Dataset',
caption="The iris dataset is well-known and common amongst new R learners.") +
scale_color_brewer(palette="Set1") +
db_light_theme(base_size = 11, base_family = 'Open Sans') %+replace%
theme(legend.position = 'right')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.