theme_knmf: KNMF ggplot theme

Description Usage Arguments Details Examples

Description

Comlete theme specyfing background, lines, axes, legend and fonts. Default parameters are the same as in ggplot2 complete themes like theme_gray, theme_bw, theme_mininal etc.

Usage

1
2
theme_knmf(base_size = 11, base_family = "sans",
  base_line_size = base_size/22, base_rect_size = base_size/22)

Arguments

base_size

base font size. Particular text elements are scaled relatively to this.

base_family

base font family.

base_line_size

base size for line elements. Particular line elements are scaled relatively to this.

base_rect_size

base size for rect elements. Particular rect elements are scaled relatively to this.

Details

A simplistic theme with white background, thin axis lines and dashed, grey major grid. It is set as default when package ggKNMF is loaded.

By default uses Roboto Condensed fonts which must be installed by the user.

Examples

1
2
3
ggplot(mtcars, aes(hp, fill = as.factor(gear))) + geom_density() +
facet_wrap(~as.factor(am)) +
labs(title = "Density plot", subtitle = "Two facets") + ggKNMF::theme_knmf()

aczepielik/ggKNMF documentation built on June 2, 2019, 2:42 p.m.