Learn R Programming

insurancerating (version 0.6.1)

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

Description

Takes an object produced by check_normality(), and plots the available input.

Usage

# S3 method for check_normality
autoplot(object, type = c("qq", "density"), data = NULL, ...)

Arguments

object

check_normality object produced by check_normality()

type

character vector, "qq" (default) or "density"

data

data (defaults to NULL)

...

other plotting parameters to affect the plot

Value

a ggplot object