Description Usage Arguments Value Author(s) Examples
Represent rule as a heatmap or boxplot.
1 |
dt |
A data frame of decision table. The last column is decision. |
rules |
A data frame of rule table in a form of rosetta $main output. |
discrete |
Logical. Set TRUE for non-discrete data. Default is FALSE. |
type |
A character indciating plot type. Heatmap or boxplot. |
ind |
A numeric value of index of the rule in the table. |
label |
A character vector indciating new labels for the rule discrete levels. |
heatmap |
A heatmap representing objects distribution in the model for the rule. |
boxplot |
A boxplots representing objects distribution in the model for the rule. |
Mateusz Garbulowski
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(R.ROSETTA)
out <- rosetta(autcon)
rules <- out$main
recRules <- recalculateRules(autcon, rules)
# heatmap
plotRule(autcon, recRules, type="heatmap", discrete=FALSE, ind=1, label = c("high","low"))
plotRule(autcon, recRules, type="heatmap", discrete=FALSE, ind=7, label = c("high","high"))
# boxplot
plotRule(autcon, recRules, type="boxplot", discrete=FALSE, ind=1, label = c("high","low"))
plotRule(autcon, recRules, type="boxplot", discrete=FALSE, ind=7, label = c("high","high"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.