Learn R Programming

insurancerating (version 0.7.5)

autoplot.smooth: Automatically create a ggplot for objects obtained from smooth_coef()

Description

[Experimental] Takes an object produced by smooth_coef(), and produces a plot with a comparison between the smoothed coefficients and estimated coefficients obtained from the model.

Usage

# S3 method for smooth
autoplot(object, ...)

Value

Object of class ggplot2

Arguments

object

object produced by smooth_coef()

...

other plotting parameters to affect the plot

Author

Martin Haringa