ggsubtitle: Add a subtitle to a ggplot figure

Description Usage Arguments Details Author(s) See Also Examples

View source: R/ggsubtitle.R

Description

This function adds a subtitle to a ggplot figure.

Usage

1
ggsubtitle(subtitle)

Arguments

subtitle

A string subtitle

Details

Works like ggtitle.

Author(s)

Charlie Gibbons

See Also

ggtitle from the ggplot2 package

Examples

1
2
3
qplot(carat, price, data = diamonds, color = cut) + 
  ggtitle("Relationship between carats and price") + 
  ggsubtitle("More carats mean higher prices!")

Brattle/BrattleExtras documentation built on May 6, 2019, 8:47 a.m.