compak_graphics: Plot for an 'compak' object in ggplot

Description Usage Arguments Value Examples

Description

This function provides a histogram corresponding to the observations and then overlaid with the pmf of a compak smoother using ggplot or graphics.

Usage

1
2
3
4
5
## S3 method for class 'compak'
autoplot(x, ...)

## S3 method for class 'compak'
plot(x, ...)

Arguments

x

an object class 'compak' object, obtain from a call to compak_fitpmf().

...

other argument passed to or from other methods (currently unused).

Value

An ggplot object for autoplot.

Examples

1
2
3
data(days)
fit <- compak_fitpmf(days, bandwidth = "CV")
plot(fit) # or autoplot(fit)

thomas-fung/compak documentation built on Dec. 23, 2021, 9:57 a.m.