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

# S3 method for compak
autoplot(x, ...)

# S3 method for 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

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