theme_grau | R Documentation |
theme_grau
provides an alternative unikn theme
to use in ggplot2 commands.
theme_grau(
col_title = grey(0, 1),
base_size = 11,
base_family = "",
base_line_size = base_size/22,
base_rect_size = base_size/22
)
col_title |
Color of title (text) elements (optional, numeric).
Default: |
base_size |
Base font size (optional, numeric).
Default: |
base_family |
Base font family (optional, character).
Default: |
base_line_size |
Base line size (optional, numeric).
Default: |
base_rect_size |
Base rectangle size (optional, numeric).
Default: |
theme_grau
is no-nonsense, but fills
panel backgrounds in "grau" (specifically, pal_seeggrau[[1]]).
This theme works well for dark colors and bright color accents, but is of limited use with transparent colors.
theme_unikn
for default theme.
Other plot functions:
slide()
,
theme_unikn()
,
xbox()
# Plotting iris dataset (using ggplot2, theme_grau, and unikn colors):
library('ggplot2') # theme_unikn requires ggplot2
ggplot(datasets::iris) +
geom_jitter(aes(x = Sepal.Length, y = Sepal.Width, color = Species), size = 3, alpha = 2/3) +
facet_wrap(~Species) +
scale_color_manual(values = usecol(pal = c(Pinky, Seeblau, Seegruen))) +
labs(tag = "B",
title = "Iris sepals",
caption = "Data from datasets::iris") +
coord_fixed(ratio = 3/2) +
theme_grau()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.