https://github.com/cran/live
Raw File
Tip revision: 8aed1f23c19d367e5b7d23427a5b7a167af51d2e authored by Mateusz Staniak on 15 January 2020, 05:30:17 UTC
version 1.5.13
Tip revision: 8aed1f2
plot.live_explainer.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot.live_explainer}
\alias{plot.live_explainer}
\title{Plotting white box models.}
\usage{
\method{plot}{live_explainer}(x, type = "waterfall", ...)
}
\arguments{
\item{x}{List returned by fit_explanation function.}

\item{type}{Chr, "forest" or "waterfall" depending
on which type of plot is to be created.
if lm/glm model is used as interpretable approximation.}

\item{...}{Additional parameters that will be passed to plot.broken or plot method.
In particular, when number of features is large, top_features argument can
be set in plot.broken.}
}
\value{
plot (ggplot2 or base)
}
\description{
Plotting white box models.
}
\examples{
\dontrun{
# Forest plot for regression
plot(fitted_explanation1, type = "forest")
# Waterfall plot
plot(fitted_explanation1, type = "waterfall")
# Plot decision tree
plot(fitted_explanation2)
}

}
back to top