File: OverlaidDenPlot.fdfm.Rd

package info (click to toggle)
r-cran-robust 0.7-5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,548 kB
  • sloc: fortran: 11,898; ansic: 741; sh: 13; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\name{overlaidDenPlot.fdfm}
\title{Overlaid Density Plot}
\alias{overlaidDenPlot.fdfm}
\description{
  Plot the estimated densities over a histogram of the data.
}

\usage{
overlaidDenPlot.fdfm(x, trunc = 1.0 - 1e-3, \dots)
}
\arguments{
  \item{x}{an \code{fdfm} object.}
  \item{trunc}{if non NULL, the maximum x-value of the plot is the
    largest \code{truncate} quantile among the estimated distributions.}
  \item{\dots}{additional arguments are passed to the plotting functions.}
}
\value{
  \code{x} is invisibly returned.
}

\examples{
  data(los, package="robustbase")
  
 \dontrun{
 
  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")
 }
}
\keyword{hplot}