Description Usage Arguments Value See Also Examples
View source: R/variableImportanceGraph.R
variableImportanceGraph
produces a variable importance graph
1 2 | variableImportanceGraph(x, y, sumYcheck = TRUE,
barColor = "rgba(0, 55, 82, 0.6)", lineColor = "#003752", lineWidth = 2)
|
x |
character vector |
y |
numeric vector |
sumYcheck |
logical value; check that |
barColor |
character string; fill color for bars (valid color) |
lineColor |
character string; line color (valid color) |
lineWidth |
non-negative integer value indicating line width (use 0 to omit) |
A horizontal barGraph
, where x
contains the names
of the variables in a model and y
contains the model contribution (decimals).
1 2 3 4 5 6 7 8 9 10 | x <- c(
"Days Since Last Transaction",
"Average Order Value",
"Signed Up Online",
"Number of Transactions",
"Tenure",
"Multi-Category Flag"
)
y <- c(.18, .4, .04, .25, .12, .01)
variableImportanceGraph(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.