Sample quantiles against the quantiles of a reference distribution;
points on a straight line mean the sample follows it. Add
geom_qq_line() for the reference.
Standard layer overrides. Map the values to x.
Quantile function of the reference distribution (default stats::qnorm).
Appearance.
Line width for the reference line.
A Layer to add with +.
set.seed(1)
d <- data.frame(v = rnorm(100))
ggnext(d, aes(v)) + geom_qq() + geom_qq_line()
#> <ggnext plot>
#> data: 100 x 1
#> aes: x = v
#> layers: 2
#> coord: cartesian
#> mode: static