contour.wblr: S3 Likelihood Ratio Contour Maps From 'wblr' Objects

Description Usage Arguments Details Value Examples

View source: R/contour.wblr.r

Description

This function adds the .wblr method to contour from the graphics package.

Usage

1
2
## S3 method for class 'wblr'
contour(x, ...)

Arguments

x

Object of class "wblr" or a list of wblr objects.

...

Entry for a limited set of graphic parameters (col, lty, lwd, xlim, ylim, main and sub)

Details

This function provides S3 object functionality for plotting a likelihood ratio contour map for any single wblr object with just the contour function.

Contour parameters are drawn from a contour existing in the object(s) passed in, or from the base object (sometimes just defaults) if no contour exists in the object.

In order to plot contour maps from multiple objects onto a single canvas it is necessary to call contour.wblr specifically with a list of wblr objects as primary argument.

Unlike the contour this map is not prepared from a matrix of z-values. Rather the specific x,y points for each CL level (Z-value) are provided for plotting lines connecting the points.

Value

The contour.wblr function itself returns no value, however, the full output of contour points and parameters from the internally called WeibullR::plot_contour function is displayed.

Examples

1
2
3
4
5
6
7
8
9
set.seed(1234)
da2 <- wblr.conf(wblr.fit(wblr(runif(5,100,1000),col="red")))
da3 <- wblr.conf(wblr.fit(wblr(rweibull(5,3,1000),col="green4")))


## Not run: 
contour.wblr(list(da2,da3))

## End(Not run)

WeibullR documentation built on July 27, 2018, 3 p.m.