qpplot.das: QP plot

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/qpplot-das.R

Description

This function produces a QP (Quantile-Probability) plot of the data.

Usage

1
2
3
4
qpplot.das(x, qdist = qnorm, probs = NULL, logx = FALSE, cex.lab = 1,
xlab = NULL, ylab = "Probability [%]", line = TRUE, lwd = 2, pch = 3,
logfinetick = c(10), logfinelab = c(10), cex = 0.7, xlim = NULL,
ylim = NULL, gridy = TRUE, add.plot = FALSE, col = 1, ...)

Arguments

x

data

qdist

The probability function with which the data should be compared.

probs

The selected probabilities, see details

logx

if TRUE, then log scale on x-axis is used

cex.lab

The size of the label

xlab

title for x-axis

ylab

title for y-axis

line

if TRUE the line will be drawn

lwd

the width of the line

pch, cex, col

graphical parameter

logfinetick

how fine are the tick marks on log-scale on x-axis

logfinelab

how fine are the labels on log-scale on x-axis

xlim

the range for the x-axis

ylim

the range for the y-axis

gridy

if grid along y-axis should be drawn

add.plot

if TRUE the new plot is added to an old one

...

futher arguments for the probability function

Details

First the probability of the sorted input x is computed and than the selected quantiles are calculated and after that plot is produced. If probs=NULL then the 1%, 5%, 10%, 20%,...., 90%, 95% and 99% quantile is taken.

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

See Also

plot, par, plot.default

Examples

1
2
3
data(AuNEW)
qpplot.das(AuNEW,qdist=qlnorm,xlab="Au",
ylab="Probabilities of lognormal distribution", pch=3,cex=0.7)

Example output

Loading required package: geoR
--------------------------------------------------------------
 Analysis of Geostatistical Data
 For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
 geoR version 1.7-5.2.1 (built on 2016-05-02) is now loaded
--------------------------------------------------------------

Loading required package: sgeostat
Warning messages:
1: no DISPLAY variable so Tk is not available 
2: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
3: 'rgl_init' failed, running with rgl.useNULL = TRUE 
4: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

StatDA documentation built on March 13, 2020, 2:42 a.m.

Related to qpplot.das in StatDA...