Learn R Programming

melt (version 1.11.3)

plot: Plot methods

Description

Provides plot methods for objects.

Usage

# S4 method for ConfregEL
plot(x, y, ...)

# S4 method for EL plot(x, y, ...)

# S4 method for ELD plot(x, y, ...)

Value

No return value, called for side effects.

Arguments

x

An object to be plotted.

y

Not used.

...

Further graphical parameters (see par).

Methods (by class)

  • plot(ConfregEL): Plots a two-dimensional confidence region for model parameters.

  • plot(EL): Plots empirical likelihood displacement values versus observation index. eld() is called implicitly.

  • plot(ELD): Plots empirical likelihood displacement values versus observation index.

See Also

ConfregEL, EL, ELD, confreg(), eld()

Examples

Run this code
## Model
data("mtcars")
fit <- el_lm(hp ~ wt, data = mtcars)

## Confidence region
out1 <- confreg(fit, npoints = 500)
plot(out1)

## Empirical likelihood displacement
out2 <- eld(fit)
plot(out2)

## A shortcut to `ELD`
plot(fit)

Run the code above in your browser using DataLab