View source: R/theme_fdbplot.R
theme_fdbplot | R Documentation |
GGplot2 theme based on theme_gray().
theme_fdbplot( base_size = 12, base_family = "", base_line_size = base_size/24, base_rect_size = base_size/24, rel_small = 10/12, rel_large = 15/12 )
base_size |
Base font size in points. Defaults to 12. |
base_family |
Base font family. No default. |
base_line_size |
Base line width in points. Defaults to base_size/24. |
base_rect_size |
Base line width for rectangles. Defaults to base_size/24. |
rel_small |
Small font size. Defaults to 10/12. |
rel_large |
Large font size. Defaults to 15/12. |
GGplot2 theme based on theme_gray().
Use ggplot2::theme_update() to tweak this to specific client needs.
Dave Braze davebraze@gmail.com
theme
library(ggplot2) data(iris) ## Set per plot. ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) + geom_point() + theme_fdbplot() ## Set as default theme at top of Rmarkdown file. Possibly with modifications theme_set(FDBpub::theme_fdbplot()) theme_update(strip.background = element_rect(fill = "lightyellow", colour = NA), strip.text = element_text(colour = "midnightblue")) ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) + geom_point() + facet_wrap(nrow=1, facets="Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.