Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: graphic
See also: grqqn grqqu

Quantlet: grqq
Description: Generates a quantile-quantile-plot to compare two variables.

Link:
Usage: bp = grqq (y, x {, col})
Input:
y n x 1 vector
x n x 1 vector
col color
Output:
bp composed graphical object

Example:

; loads the library graphic

library ("graphic")

; generate a dataset with 160 observations

t1  = (normal(25)-8)|(normal(25)+8)|normal(100)|(normal(10)+25)

t2  = (normal(25)-8)|(normal(25)+8)|normal(100)|(normal(10)+25)

; generate a qq-plot to compare t1 with t2

bp = grqq (t1, t2)

; create a dispplay for plotting

d  = createdisplay (1,1)

; plot the qq-plot

show (d, 1, 1, bp)

Result:

shows a qq-plot


Library: graphic
See also: grqqn grqqu

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Sigbert Klinke, 960925
(C) MD*TECH Method and Data Technologies, 21.9.2000