qqPlot: qq-Plot

View source: R/qqPlotRmx.R

qqPlotR Documentation

qq-Plot

Description

The function qqPlot generates a qq-plot for fitted models.

Usage

qqPlot(x, ...)

## S3 method for class 'rmx'
qqPlot(x, param.digits = 3, ggplot.xlab = "Theoretical Quantiles", 
                     ggplot.ylab = "Sample Quantiles", ggplot.ggtitle = NULL,
                     point.col = "#0072B5", point.alpha = 1, ...)

Arguments

x

object of S3 class rmx.

param.digits

number of digits used for the estimated parameter values, if default ggplot.ggtitle is used.

ggplot.xlab

label of x-axis.

ggplot.ylab

label of y-axis.

ggplot.ggtitle

plot title. If NULL default plot title is generated.

point.col

single color used for colouring the data points.

point.alpha

alpha used for color shading.

...

further arguments passed through.

Details

The function is based on functions provided by packages ggplot2 and qqplotr.

Value

Invisible object of class ggplot.

Author(s)

Matthias Kohl Matthias.Kohl@stamats.de

References

Kohl, M. (2005) Numerical Contributions to the Asymptotic Theory of Robustness. Bayreuth: Dissertation.

Rieder, H. (1994) Robust Asymptotic Statistics. New York: Springer.

Rieder, H., Kohl, M. and Ruckdeschel, P. (2008) The Costs of not Knowing the Radius. Statistical Methods and Applications 17(1) 13-40. Extended version: http://r-kurs.de/RRlong.pdf

M. Kohl, P. Ruckdeschel, and H. Rieder (2010). Infinitesimally Robust Estimation in General Smoothly Parametrized Models. Statistical Methods and Application, 19(3):333-354.

See Also

rmx, optIF

Examples

ind <- rbinom(100, size=1, prob=0.05) 
x <- rnorm(100, mean=ind*3, sd=(1-ind) + ind*9)
res <- rmx(x, eps.lower = 0.01, eps.upper = 0.1)
qqPlot(res)

## plot-method
plot(res, which = 2)

## setting and passing arguments
qqPlot(res, ggplot.xlab = "Quantiles of estimated model", point.col = "black")
plot(res, which = 2, 
     control = list(qqPlot = list(ggplot.xlab = "Quantiles of estimated model", 
                                  point.col = "black")))

stamats/rmx documentation built on Sept. 29, 2023, 7:13 p.m.