View source: R/plot.OBREresult.R
plot.OBREresult | R Documentation |
The function computes the plot of the OBRE computation
## S3 method for class 'OBREresult'
plot(x, ...)
x |
The OBREresult object (output of OBRE function) that has to be plotted. |
... |
Added argument for consistency with the plot generic function. |
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.
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)})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.