Learn R Programming

ggpubr (version 0.1.1)

theme_pubr: Publication ready theme

Description

  • theme_pubr(): Create a publication ready theme
  • labs_pubr(): Format only plot labels to a publication ready style
  • theme_classic(): Create a classic theme with axis lines

Usage

theme_pubr(base_size = 14, base_family = "")
labs_pubr(base_size = 14, base_family = "")
theme_classic2(base_size = 12, base_family = "")

Arguments

base_size
base font size
base_family
base font family

Examples

Run this code
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
   geom_point(aes(color = gear))

# Default plot
p

# Use theme_pubr()
p + theme_pubr()

# Format labels
p + labs_pubr()

Run the code above in your browser using DataLab