Learn R Programming

radiant.model (version 0.8.0)

plot.evalbin: Plot method for the evalbin function

Description

Plot method for the evalbin function

Usage

# S3 method for evalbin
plot(x, plots = c("lift", "gains"), shiny = FALSE,
  custom = FALSE, ...)

Arguments

x

Return value from evalbin

plots

Plots to return

shiny

Did the function call originate inside a shiny app

custom

Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This opion can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and http://docs.ggplot2.org/ for options.

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/model/evalbin.html for an example in Radiant

See Also

evalbin to generate results

summary.evalbin to summarize results

Examples

Run this code
# NOT RUN {
evalbin("titanic", "age", "survived") %>% plot
evalbin("titanic", c("age","fare"), "survived") %>% plot
evalbin("titanic", c("age","fare"), "survived", method = "xtile") %>% plot
evalbin("titanic", c("age","fare"), "survived") %>% summary

# }

Run the code above in your browser using DataLab