plot.expmodel {dsdp} | R Documentation |
Plot a histogram and estimated densities/distributions of Exponential-based model object
Description
Plot the histogram and, if available, estimated densities
or cumulative distributions of expmodel
object.
Usage
## S3 method for class 'expmodel'
plot(
x,
cum = FALSE,
nmax = 4,
graphs = NULL,
bins = 40,
hist = TRUE,
linesize = 1,
...
)
Arguments
x |
|
cum |
A logical scalar, whether or not it plots cumulative
histogram/distributions instead of plain histogram/densities.
Default value is |
nmax |
A maximum number of estimates to be plotted in the graph. The default value is 4. |
graphs |
A vector of indices to be displayed in the graph.
These indices appear in the leftmost column of the table in
|
bins |
A number of bins of the histogram. |
hist |
A logical scalar. If |
linesize |
A positive numeric scalar, which indicates the thickness of
lines. The default value is |
... |
Arguments to be passed to or from other methods. |
Value
A ggplot2
object.
See Also
expmodel()
summary.expmodel()
func.expmodel()
pdf_expmodel()
cdf_expmodel()
Examples
## Create `expmodel` object from a data set mixexpgamma$n200
emodel <- expmodel(mixexpgamma$n200)
## Plot it (histogram only)
plot(emodel)