OverlaidDenPlot.fdfm: Overlaid Density Plot

overlaidDenPlot.fdfmR Documentation

Overlaid Density Plot

Description

Plot the estimated densities over a histogram of the data.

Usage

overlaidDenPlot.fdfm(x, trunc = 1.0 - 1e-3, ...)

Arguments

x

an fdfm object.

trunc

if non NULL, the maximum x-value of the plot is the largest truncate quantile among the estimated distributions.

...

additional arguments are passed to the plotting functions.

Value

x is invisibly returned.

Examples

  data(los, package="robustbase")
  
 ## Not run: 
 
  los.fm <- fit.models(c(Robust = "fitdstnRob", MLE = "fitdstn"),
                         x = los, densfun = "gamma")

  
  los.fm <- fit.models(c(Robust = "fitdstnRob", MLE = "fitdstn"),
                         x = los, densfun = "weibull")
                         
  overlaidDenPlot.fdfm(los.fm, xlab = "x-axis label", ylab = "y-axis label",
                       main = "Plot Title")
 
## End(Not run)

robust documentation built on Sept. 11, 2024, 5:16 p.m.