qqnorm | R Documentation |
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.
qqnorm( y, ylim, main = "Normal Q-Q Plot", xlab = "Theoretical Quantiles", ylab = "Sample Quantiles", plot.it = TRUE, datax = FALSE, ... )
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 |
data.frame
with sorted sample and normal quantiles, NA
values are excluded.
qqnorm(stats::rnorm(1e6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.