This function displays a fitted SEL object and displays the
expert's cdf or pdf (depending on the deriv argument)
Usage
## S3 method for class 'SEL'
plot(x, ..., type = c("density", "cdf"), deriv,
points = TRUE, n = 101, xlab="", ylab="", ylim)
Arguments
x
An SEL object.
...
Additional arguments to plot function.
type
Determines whether to plot the expert's density or cdf
(only if deriv is missing).
deriv
Determines which derivative of the expert's
distribution should be plotted. If specified
the type argument is ignored.
points
Logical indicating whether elicited quantiles
should be displayed, when displaying the cdf.
n
Integer, number of points used for plotting.
xlab, ylab
Label of x-axis and y-axis.
ylim
Limits of y axis.
Author(s)
Bjoern Bornkamp
References
Bornkamp, B. and Ickstadt, K. (2009). A Note on B-Splines for
Semiparametric Elicitation. The American Statistician, 63, 373–377
See Also
comparePlot, SEL
Examples
# example from O'Hagan et al. (2006)
x <- c(177.5, 183.75, 190, 205, 220)
y <- c(0.175, 0.33, 0.5, 0.75, 0.95)
fit <- SEL(x, y, Delta = 0.05, bounds = c(165, 250))
plot(fit)
plot(fit, type = "cdf")
plot(fit, deriv = 1)
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(SEL)
Loading required package: splines
Loading required package: quadprog
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SEL/plot.SEL.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.SEL
> ### Title: Plotting an SEL object
> ### Aliases: plot.SEL
> ### Keywords: misc
>
> ### ** Examples
>
> # example from O'Hagan et al. (2006)
> x <- c(177.5, 183.75, 190, 205, 220)
> y <- c(0.175, 0.33, 0.5, 0.75, 0.95)
>
> fit <- SEL(x, y, Delta = 0.05, bounds = c(165, 250))
> plot(fit)
> plot(fit, type = "cdf")
> plot(fit, deriv = 1)
>
>
>
>
>
> dev.off()
null device
1
>