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

View source: R/contour.wblr.r

contour.wblrR Documentation

S3 Likelihood Ratio Contour Maps From wblr Objects

Description

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

Usage

## 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

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 June 26, 2022, 1:06 a.m.