Description Usage Arguments Note Author(s) See Also Examples
Produces a text-based normal quantile-quantile plot where the theoretical quantiles are plotted along the x-axis and the sample quantiles are plotted along the y-axis.
1 2 |
data |
A numeric vector containing the values to be plotted. |
line |
If |
ratio |
Coefficient that controls the aspect ratio of the plot. |
width |
Width of the plot in points. |
height |
Height of the plot in points. |
pch |
A two dimensional vector of single-character symbols. The first symbol is for data point, and the second symbol is for the line of theoretical quantile equality. |
Due to rounding to a relatively crude grid results can only be approximate. The equally spaced axis ticks, for example, may be non-equally spaced in the plot. Further, due to the crude grid also there might be several points per character. The function uses the same plotting symbol no matter how many points coincide on one character position.
Hien D. Nguyen
1 2 3 4 5 6 7 8 9 | ## Produce a normal quantile-quantile plot of 10 random standard normal points,
## without the line of theoretical quantile equality.
data <- rnorm(10)
nos.qqnorm(data,line=FALSE)
## Produce a normal quantile-quantile plot of 100 random chi-squared(3) points,
## with the line of theoretical quantile equality.
data <- rchisq(100,3)
nos.qqnorm(data)
|
Loading required package: txtplot
+--+--------+-------+-------+--------+-------+--------+---+
2 + o +
| |
S | o |
a 1 + +
m | |
p | o |
l | o |
e 0 + +
| o o |
Q | o |
s -1 + o o +
| o |
+--+--------+-------+-------+--------+-------+--------+---+
-1.5 -1 -0.5 0 0.5 1 1.5
Theoretical Qs
15 +------+--------------+--------------+--------------+-----+
| o ~~~~ |
| ~~~~ |
S | ~~~~ |
a 10 + o ~~~~ +
m | oo~~~~ |
p | ooo~~~ |
l | ooo~ |
e 5 + ~~ooo +
| ~oooo |
Q | ~~oooo |
s | ~oooooo |
| o oooooooooooo |
0 +------+--------------+--------------+--------------+-----+
-2 0 2 4
Theoretical Qs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.