centertitle {ProbBayes}R Documentation

Centers title in a ggplot2 graphic

Description

Centers and increases font size of a ggplot2 graphic title

Usage

centertitle(Color = "blue")

Arguments

Color

color of the text in the ggplot2 title

Value

ggplot2 theme code to center the title

Author(s)

Jim Albert

Examples

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()

[Package ProbBayes version 1.1 Index]