Last data update: 2014.03.03

R: QQ plot for GLD
qqgld.defaultR Documentation

QQ plot for GLD

Description

This is an updated QQ plot function for GLD comparing fitted distribution with empirical data

Usage

qqgld.default(y, vals, param, ylim, main = "GLD Q-Q Plot", 
xlab = "Theoretical Quantiles", ylab = "Sample Quantiles", 
plot.it = TRUE, datax = FALSE, ...)

Arguments

y

A vector of empirical data observations

vals

A vector representing four parameters of GLD

param

Can be "rs", "fmkl" or "fkml"

ylim

A vector of two numerical values, specifying the upper and lower bound of y axis

main

Title of the qq plot

xlab

Label for X axis

ylab

Label for Y axis

plot.it

Whether to plot the QQ plot, default is TRUE

datax

Whether data values should be on x axis, default is FALSE

...

Additional graphical parameters

Details

This is an adaptation of the default qq plot in R

Value

A list with components:

x

The x coordinates of the points that were/would be plotted

y

The original y vector, i.e., the corresponding y coordinates including NAs.

Author(s)

R, with modifications from Steve Su

See Also

qqplot.gld, qqplot.gld.bi

Examples

x<-rnorm(100)
fit1<-fun.RMFMKL.ml.m(x)
qqgld.default(x,fit1,param="fmkl")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GLDreg)
Loading required package: GLDEX
Loading required package: cluster
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GLDreg/qqgld.default.Rd_%03d_medium.png", width=480, height=480)
> ### Name: qqgld.default
> ### Title: QQ plot for GLD
> ### Aliases: qqgld.default
> ### Keywords: hplot
> 
> ### ** Examples
> 
> x<-rnorm(100)
> fit1<-fun.RMFMKL.ml.m(x)
> qqgld.default(x,fit1,param="fmkl")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>