plot.iclogcondist: Plot Method for iclogcondist_plot Objects

View source: R/iclogcondist_visualization.R

plot.iclogcondistR Documentation

Plot Method for iclogcondist_plot Objects

Description

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.

Usage

## S3 method for class 'iclogcondist'
plot(x, log = FALSE, ...)

Arguments

x

An object of class iclogcondist, typically generated by ic_UMLE, ic_LCM_UMLE, or ic_LCMLE.

log

Logical; if TRUE, plots the log cumulative distribution function logF(t). If FALSE, plots F(t). Default is FALSE.

...

Additional arguments passed to the plotting function.

Value

An invisible ggplot object representing the plot. The plot is also displayed in the current graphics device.

Examples

# 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

iclogcondist documentation built on April 4, 2025, 5:18 a.m.