Q-Q Plot

Description

Draw a simple Q-Q Plot

Usage

1
2
3
4
5
6
qq.ade(x, data=NULL, main="Q-Q Plot",
       xlab="Theoretical Quantiles", ylab="Sample Quantiles",
       xlim=NULL, ylim=NULL, lwd=1, cex=1, pch=16, lty=1,
       xticks=NULL, yticks=NULL,
       col=NULL, tcol=NULL, bgcol=NULL, lcol=NULL, alpha=NULL, fitline=0,
       qline=TRUE, wall=0, v=NULL, h=NULL, diag=FALSE, band=FALSE, span=0.75)

Arguments

x
  • a numeric vector

  • a character string with the name of the variable in the data.frame

data

data.frame if used character string for x

main

an overall title for the plot

xlab

a title for the x axis

ylab

a title for the y axis

xlim

the x limits (x1, x2) of the plot

ylim

the y limits (y1, y2) of the plot

lwd

the line width

cex

character (or symbol) expansion: a numerical value

pch

plotting "character", i.e., symbol to use. This can either be a single character or an integer code for one of a set of graphics symbols.

lty

the line type

xticks

the number of ticks on the x axis or a vector of exact ticks

yticks

the number of ticks on the y axis or a vector of exact ticks

col

a color for the points

tcol

color of the text in whole plot

bgcol

the background color for plot dekoration

lcol

color for the lines in plot, a vector of colors is possible

alpha

a parameter in [0, 1] for semi-transparency of points

fitline

a number between 0 and 3 to fit:

  • 0. not fit

  • 1. a lm regression line

  • 2. a loess local regression line

  • 3. a pylinomial regression line

qline

logical asking whether to draw a median line fitted from data between 25th and 75th percentiles only.

wall

a number between 0 and 6 for selection the dekoration style of the plot.

v

the x-value(s) for vertical line(s).

h

the y-value(s) for horizontal line(s).

diag

logical asking whether to plot a diagonal line

band

logical asking whether to plot a simulated normal band or N of iteration for band estimation

span

the span parameter for lowess curve fit (only if fitline=2)

Details

It is only a wrapper function for scatter.ade.

See Also

scatter.ade

Examples

1
2
qq.ade(rnorm(1000))
qq.ade(rchisq(1000, 2), fitline=2, wall=3, col=2)