qqnorm {fastqq}R Documentation

Creates a Q-Q plot for comparing with normal quantiles

Description

Faster alternative to stats::qqnorm(). For more than 1e5 points we remove excess points, that would not be visible in the plot, since the points are so close. Otherwise this should work exactly the same, and the code is mostly adapted from stats::qqnorm(). This code produces more lightweight plots for excessive amounts of data.

Usage

qqnorm(
  y,
  ylim,
  main = "Normal Q-Q Plot",
  xlab = "Theoretical Quantiles",
  ylab = "Sample Quantiles",
  plot.it = TRUE,
  datax = FALSE,
  ...
)

Arguments

y

sample, to compare to normal quantiles.

ylim

graphical limits.

main

Plot title.

xlab

X label.

ylab

Y label.

plot.it

Should the plot be created.

datax

logical. Should data values be on x-axis?

...

Other arguments passed to plot()

Value

data.frame with sorted sample and normal quantiles, NA values are excluded.

Examples

qqnorm(stats::rnorm(1e6))

[Package fastqq version 0.1.3 Index]