Library: | graphic |
See also: | grqq grqqn grppu |
Quantlet: | grppn | |
Description: | generates a probability-probability plot to compare a variable with a normal distribution. |
Usage: | dp = grppn(x {,col}) | |
Input: | ||
x | n x 1 vector, sample from the variable to be compared with a normal distribution | |
col | optional scalar, color of the plot; default col = grc.col.black | |
Output: | ||
dp | list, composed graphical object |
; loads the library graphic library("graphic") ; generates dataset t = normal(250) ; generates a pp-plot to compare t with a normal distribution dp = grppn(t) ; creates a display for plotting d = createdisplay(1,1) ; plots the pp-plot show(d, 1, 1, dp)
Shows a pp-plot