Description Usage Arguments Examples
A simple and elegant black and white theme.
1 2 3 4 | theme_elegant(base_family = "", base_size = 14, title_size = 18,
subtitle_size = 14, caption_size = 11, facet_text_size = 12,
axis_size = 12, axis_title_position = "rt",
plot_margin = ggplot2::margin(30, 30, 30, 30))
|
base_family |
Base font family. |
base_size |
Base font size. |
title_size |
Title font size. |
subtitle_size |
Subtitle font size. |
caption_size |
Caption font size. |
facet_text_size |
Facet font size. |
axis_size |
Axis font size. |
axis_title_position |
Axis title position. One of '[blmcrt]'. |
plot_margin |
Margins of the plot. |
1 2 3 4 5 6 7 8 9 10 11 | library("ggplot2")
ggplot(data = iris,
aes(x = Sepal.Width, y = Sepal.Length, color = Species)) +
geom_point(size = 3, show.legend = FALSE) +
geom_smooth(se = FALSE, show.legend = FALSE) +
scale_color_orange(palette = "secondary") +
facet_wrap(~ Species) +
labs(title = "The 'infamous' iris dataset",
subtitle = "Sepal.Length in function of Sepal.Width by Species") +
theme_elegant()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.