autoplot.validatr: Plot accuracy measure densities

Description Usage Arguments Value Examples

Description

Produces violin plots for accuracy measures. Jittered points are also used to show actual values.

Usage

1
2
## S3 method for class 'validatr'
autoplot(object, ...)

Arguments

object

a validatr object produced by assess().

...

other arguments passed.

Value

A ggplot object.

Examples

1
2
3
4
5
6
7
8
iris %>%
  validatr(y = Sepal.Length, k = 3) %>%
  model(LM1 = lm(Sepal.Length ~ ., data = train),
        LM2 = lm(Sepal.Length ~ Sepal.Width + Petal.Width, data = train)) %>%
  predict(LM1 = predict(LM1, newdata = validation),
          LM2 = predict(LM2, newdata = validation)) %>%
  assess() %>%
  autoplot()

camroach87/validatr documentation built on May 14, 2019, 2:41 p.m.