qqunif | R Documentation |
qqunif
makes a Q-Q plot against a uniform distribution for the supplied data vector.
qqunif(x, logplot = FALSE, lbs = 1:length(x), texton = FALSE,
xylim = NULL, main = "Q-Q plot for a uniform distribution",
plotline = 0, xlab = "Expected p-value",
ylab = "Observed p-value", colvec=rep("black",length(x)),
colline = "black", ...)
x |
The data vector |
logplot |
If |
lbs |
A vector of labels for the points in the Q-Q plot |
texton |
Logical indicating whether labels should be plotted or not |
xylim |
Shared upper limit x and y axis in the plot |
main |
Title for the plot |
plotline |
Setting |
xlab |
label for the x axis |
ylab |
label for the y axis |
colvec |
vector with colours for the points in the QQ plot |
colline |
colour for the line in the plot |
... |
Any additional arguments for the |
pvals |
observed probabilities |
epvals |
expected probabilities |
Jan Graffelman (jan.graffelman@upc.edu)
qqnorm
x <- runif(1000)
z <- qqunif(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.