Description Usage Arguments Value Examples
View source: R/ggplot2_theme.R
Title
1 2 | theme_modern(base_size = 11, base_family = "Lucida Sans Unicode",
base_line_size = base_size/22, base_rect_size = base_size/22)
|
base_size |
base font size in points (11) |
base_family |
base font family ('Lucida Sans Unicode') |
base_line_size |
base line size in units of 22pt ( |
base_rect_size |
base rectangle size in units of 22pt ( |
a ggtheme()-like object
1 2 3 4 5 6 7 8 9 10 11 | if (interactive()) {
library(extrafont)
windowsFonts()
extrafont::font_import()
extrafont::loadfonts(device="win")
windowsFonts()
ggplot2::ggplot(data = iris, ggplot2::aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
ggplot2::geom_point() +
ggplot2::labs(title = 'Iris setosa is separable, but versicolor and verginica are not.') +
theme_modern()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.