Library: | graphic |
See also: | grqq grqqu grppn |
Quantlet: | grppu | |
Description: | generates a probability-probability plot to compare a variable with a uniform distribution. |
Usage: | dp = grppu(x {,col}) | |
Input: | ||
x | n x 1 vector, sample from the variable to be compared with a uniform 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 = uniform(250)+15 ; generates a pp-plot to compare t with a uniform distribution dp = grppu(t) ; creates a display for plotting d = createdisplay(1,1) ; plots the pp-plot show(d, 1, 1, dp)
Shows a pp-plot