Learn R Programming

ProbBayes (version 1.1)

increasefont: Increases font size of text

Description

Increases font size on all text in a ggplot2 graphic

Usage

increasefont(Size = 18)

Arguments

Size

font size of all textual elements in a ggplot2 graphic

Value

ggplot2 theme code to increase the font size

Examples

Run this code
# NOT RUN {
df <- data.frame(p=c(.1, .3, .5, .7, .9),
                 Prior=rep(1/5, 5))
ggplot(df, aes(p, Prior)) +
geom_point() + increasefont()
# }

Run the code above in your browser using DataLab