Statistics
QuantilePlot
generate quantile-quantile plots
Calling Sequence
Parameters
Description
Options
Examples
QuantilePlot(X, Y, options, plotoptions)
QuantilePlot['interactive'](X, Y)
X
-
first data sample
Y
second data sample
options
(optional) equation(s) of the form option=value where option is one of color, method, reference, or samplesize; specify options for generating the quantile-quantile plot
plotoptions
options to be passed to the plots[display] command
The QuantilePlot command generates a quantile-quantile plot for the specified data.
The first parameter X is the first data sample - given as e.g. a Vector.
The second parameter Y is the second data sample - given as e.g. a Vector.
If the ['interactive'] option is used, then a dialog box appears that allows for customized creation of the plot.
The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot/options for details.
color=name, list, or range
This option specifies colors for the points and for the reference line. When a list of colors is given, the set of points and the reference line are colored with the corresponding colors in the list. If a range of colors is given, the colors are generated by selecting an appropriate number of equally spaced points in the corresponding hue range.
method=integer[1..9]
Method for calculating the quantiles. See Statistics[Quantile] for more details.
reference=true or false
If reference is set to true, the reference line y=x is drawn in the same plot. Default value is true.
samplesize= positive integer
The number of points to be plotted. The quantiles taken will be Q⁡inumpoints for i=1..numpoints The default value is 25.
with⁡Statistics:
Create three random samples.
X≔Sample⁡Normal⁡5,2,500:
Y≔Sample⁡Normal⁡5,2,500:
Z≔Sample⁡Normal⁡6,3,500:
QuantilePlot⁡X,Y
The command to create the plot from the Plotting Guide using the data above is
QuantilePlot⁡X,Z
Added options can alter the appearance of the plot:
QuantilePlot⁡X,Y,symbolsize=15,symbol=circle,color=Black,Red,axis2=gridlines=8,color=Grey
See Also
Statistics/Visualization
Statistics[NormalPlot]
Statistics[ProbabilityPlot]
Statistics[WeibullPlot]
Download Help Document