plot.sumcat: Plot

Description Usage Arguments Details Value Examples

View source: R/plot_function.R

Description

Takes the fitted values(actual values) less the predicted values creating the residuals. These are then plotted as a density curve over one another, using the geom_density from ggplot2.

Usage

1
2
## S3 method for class 'sumcat'
plot(x, y, ...)

Arguments

x

A sumcat list object which is the summary of classifications made by four different Classification methods. Can be reproduced with the model_cat() function.

y

A null value in this case as all the information is stored inside the x object which is a sumcat object.

...

Parameters that can be passed on to later functions if needed.

Details

Plot function which visualize residual density plots from several methods for classification. Returns a plot with each residual density plot colored.

Value

A density plot made with functions provided by the ggplot2 package

Examples

1
2
 x <- model_cat(Potability~., water_potability, water_test)
 plot(x)

samhaycock/sumcat documentation built on Dec. 22, 2021, 10:11 p.m.