ruleDist | R Documentation |
Calculate pairwise distance among a set of rules or between two sets of rules, where each rule defines a subpopulation
ruleDist(
x,
rules1,
rules2 = NULL,
print.plot = TRUE,
plot.type = c("static", "interactive"),
heat.lo = "black",
heat.mid = NA,
heat.hi = "#F48024",
verbose = TRUE
)
x |
Data frame / matrix: Input features (cases by features) |
rules1 |
Character, vector: Rules as combination of conditions on the features of |
rules2 |
String, vector, Optional: Rules as combination of conditions on the features of |
print.plot |
Logical: If TRUE, plot heatmap for calculated distance |
plot.type |
Character: "static", "interactive": type of graphics to use, base or plotly, respectively. Default = "static" |
heat.lo |
Color: Heatmap low color. Default = "black" |
heat.mid |
Color: Heatmap mid color. Default = NA (i.e. create gradient from |
heat.hi |
Colo: Heatmap hi colo. Default = "#F48024" (orange) |
verbose |
Logical: If TRUE, print console messages. Default = TRUE |
If only rules1 is provided, computes pairwise distance among rules1, otherwise computes pairwise distance between rules1 and rules2
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.