plot_contour {WeibullR} | R Documentation |
Plotting of Likelihood Ratio Contours from wblr
Objects
Description
Plots likelihood ratio contours from a wblr
object or a list of wblr
objects.
Usage
plot_contour(x, CL=NULL, AL=TRUE, ...)
Arguments
x |
Object of class |
CL |
An optional argument for establishing the confidence limit(s) for calculated contours. A vector of values may be provided to generate concentric contours on a single object. |
AL |
A Logical defining whether parameters of lognormal contours should be presented as AntiLog values. |
... |
Entry for a limited set of graphic parameters (col, lty, lwd, xlim, ylim, main and sub) |
Details
If no CL argument is provided, the contours generated in the provided wblr
objects for likelihood confidence bounds will be plotted.
If a vector is provided for CL, multiple contours for each provided object will be calculated to display concentric contours according to values in the CL vector.
In all cases options for distribution, degrees of freedom and graphic options will be extracted from the underlying objects.
Value
This function returns the list of contours that were prepared for plotting.
Examples
set.seed(1234)
fail<-rweibull(5,2,10)
ctest<-wblr(fail)
ctest<-wblr.fit(ctest, method.fit="mle")
ctest<-wblr.conf(ctest, method.conf="lrb",col="red")
fail2<-c(10,40,40,50)
susp<-c(20,60)
ctest2<-wblr(fail2, susp)
ctest2<-wblr.fit(ctest2, method.fit="mle")
ctest2<-wblr.conf(ctest2, method.conf="lrb",col="blue")
## Not run:
plot_contour(list(ctest, ctest2))
## End(Not run)