theme_kudusch: A simple custom theme for ggplot.

View source: R/theme_kudusch.R

theme_kuduschR Documentation

A simple custom theme for ggplot.

Description

A minimal theme based on theme_classic with a monospaced font.

Usage

theme_kudusch(base_size = 12, base_family = "Anka/Coder Narrow")

Arguments

base_size

base font size

base_family

base font family

Examples

## Not run: 
mtcars2 <- within(mtcars, {
vs <- factor(vs, labels = c("V-shaped", "Straight"))
am <- factor(am, labels = c("Automatic", "Manual"))
cyl  <- factor(cyl)
gear <- factor(gear)
})
p1 <- ggplot(mtcars2) +
geom_point(aes(x = wt, y = mpg, colour = gear)) +
labs(title = "Fuel economy declines as weight increases",
subtitle = "(1973-74)",
caption = "Data from the 1974 Motor Trend US magazine.",
tag = "Figure 1",
x = "Weight (1000 lbs)",
y = "Fuel economy (mpg)",
colour = "Gears")

p1 + theme_kudusch()
# Theme examples with panels
p2 <- p1 + facet_grid(vs ~ am)
p2 + theme_kudusch()

## End(Not run)


Kudusch/ktools documentation built on Oct. 30, 2022, 10:13 p.m.