ggQQ.plot: Quantile-Quantile Plot with ggplot2

Description Usage Arguments Value Author(s) See Also Examples

Description

Produces a normal QQ plot of the values in x using ggplot2. Adds a line to a "theoretical", by default normal, quantile-quantile plot which passes through the probs quantiles, by default the first and third quartiles.

Usage

1
ggQQ.plot(data, x, add.labels = FALSE)

Arguments

data

a dataframe

x

Unquoted variable name

add.labels

logical. Should the plot show actual values rather than points (default)?

Value

A ggplot2 object to which other layers can be added.

Author(s)

Jason Grafmiller

See Also

qqnorm, qqline, geom_point, geom_abline, stat_qq.

Examples

1
2
3
4
5
6
7
data(brown_genitives)

ggQQ.plot(brown_genitives, TypeTokenRatio)

ggQQ.plot(x) + annotate("text", x = 0.5, y = 0, label = "some text")

ggQQ.plot(x) + theme_bw()

jasongraf1/JGggplot documentation built on May 29, 2019, 11:43 a.m.