View source: R/iclogcondist_visualization.R
plot.iclogcondist | R Documentation |
This function generates a plot for objects of class iclogcondist
, which are typically generated by
ic_UMLE
, ic_LCM_UMLE
, or ic_LCMLE
. The plot can display either the cumulative
distribution function F(t)
or the log cumulative distribution function logF(t)
, depending on the
setting of the log
parameter.
## S3 method for class 'iclogcondist'
plot(x, log = FALSE, ...)
x |
An object of class |
log |
Logical; if |
... |
Additional arguments passed to the plotting function. |
An invisible ggplot
object representing the plot. The plot is also displayed in the current graphics device.
# Example usage with ic_UMLE, ic_LCM_UMLE, and ic_LCMLE
data(lgnm)
X <- lgnm
fit_UMLE <- ic_UMLE(X)
fit_LCM_UMLE <- ic_LCM_UMLE(X)
fit_LCMLE <- ic_LCMLE(X)
plot(fit_UMLE, log = TRUE) # Plot logF(t) for UMLE
plot(fit_LCM_UMLE, log = FALSE) # Plot F(t) for LCM_UMLE
plot(fit_LCMLE, log = FALSE) # Plot F(t) for LCMLE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.