theme_bwkn provides an alternative bw theme
for use in ggplot2 and unikn contexts.
Arguments
- col_title
Color of text elements used for plot title, axis titles, and legend (optional). Default:
col_title = grey(.10, 1)(i.e., dark grey). Consider usingcol_title = unikn::pal_seeblau[[4]].- col_line
Color of line elements used for axis lines, text and ticks, plot caption and subtitle, and panel border. Default:
col_line = grey(.40, 1)(i.e., medium grey).- base_size
Base font size (optional, numeric). Default:
base_size = 12.- base_family
Base font family (optional, character). Default:
base_family = "sans". Options include"mono","sans"(default), and "serif".- base_line_size
Base line size (optional, numeric). Default:
base_line_size = base_size/22.- base_rect_size
Base rectangle size (optional, numeric). Default:
base_rect_size = base_size/22.- axis_ticks_mm
Length of axis ticks (in mm). Default:
axis_ticks_mm = 2.
Details
theme_bwkn is light and no-nonsense,
and based on theme_bw.
This theme works well for most visualizations that require grid and plot panel boundaries.
See also
theme_unikn for default theme;
theme_grau for a grey theme;
theme_minikn for a minimal theme.
Other plot functions:
slide(),
theme_grau(),
theme_minikn(),
theme_unikn(),
xbox()
Examples
# \donttest{
# Plotting iris dataset (using ggplot2, theme_grau, and unikn colors):
library('ggplot2') # theme_bwkn 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 = "C",
title = "Iris sepals by species (using theme_bwkn)",
caption = "Data from datasets::iris") +
coord_fixed(ratio = 3/2) +
theme_bwkn()
# }
