centertitle: Centers title in a ggplot2 graphic

Description Usage Arguments Author(s) Examples

View source: R/centertitle.R

Description

Centers and increases font size of a ggplot2 graphic title

Usage

1
centertitle(Color = "blue")

Arguments

Color

color of the text in the ggplot2 title

Author(s)

Jim Albert

Examples

1
2
3
4
5
6
df <- data.frame(p=c(.1, .3, .5, .7, .9),
                 Prior=rep(1/5, 5))
ggplot(df, aes(p, Prior)) +
geom_point() +
ggtitle("My Prior") +
centertitle()

bayesball/TeachBayes documentation built on Jan. 5, 2020, 1:47 a.m.