Learn R Programming

OneR (version 2.2)

plot.OneR: Plot Diagnostics for an OneR object

Description

Plots a mosaic plot for the feature attribute and the target of the OneR model.

Usage

# S3 method for OneR
plot(x, ...)

Arguments

x
object of class "OneR".
...
further arguments passed to or from other methods.

Details

If more than 20 levels are present for either the feature attribute or the target the function stops with an error.

References

https://github.com/vonjd/OneR

See Also

OneR

Examples

Run this code
model <- OneR(iris)
plot(model)

Run the code above in your browser using DataLab