Learn R Programming

OBRE (version 0.2-0)

plot.OBREresult: Function that plot an OBREresult object.

Description

The function computes the plot of the OBRE computation

Usage

# S3 method for OBREresult
plot(x, ...)

Value

A graphical representation of an OBREresult obect. The plot is composed by four plots: the value of input data in logaritmic scale, the values of score function evaluated in the input data, the OBRE weights, the values of OBRE components.

Arguments

x

The OBREresult object (output of OBRE function) that has to be plotted.

...

Added argument for consistency with the plot generic function.

Examples

Run this code
try({# Generates the Normal distribution input for OBRE
distrForOBRE <- densityExpressions(strDistribution = "normal")
# Generates input data
simData = c(rnorm(100, 12, 1), rnorm(10, 10, 10))
# Estimates OBREresult object
estOBRE = OBRE(nvData = simData, strDistribution = "normal", nCParOBRE = 3)
plot(estOBRE)})

Run the code above in your browser using DataLab