ggplot2 classic theme with axis lines

Share:

Description

Create a ggplot2 classic theme with axis lines.

Usage

1
theme_classic2(base_size = 12, base_family = "")

Arguments

base_size

base font size

base_family

base font family

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
   geom_point(aes(color = gear))

# Default plot
p

# Use theme_classic()
p + theme_classic()

# Use theme_classic2()
p + theme_classic2()