ciu.barplot {ciu} | R Documentation |
ciu.barplot
Description
Create a barplot showing CI as the length of the bar and CU on color scale from red to green, via yellow, for the given inputs and the given output.
Usage
ciu.barplot(
ciu,
instance,
ind.inputs = NULL,
ind.output = 1,
in.min.max.limits = NULL,
n.samples = 100,
neutral.CU = 0.5,
show.input.values = TRUE,
concepts.to.explain = NULL,
target.concept = NULL,
target.ciu = NULL,
ciu.meta = NULL,
color.ramp.below.neutral = NULL,
color.ramp.above.neutral = NULL,
use.influence = FALSE,
sort = NULL,
decreasing = FALSE,
main = NULL,
xlab = NULL,
xlim = NULL,
...
)
Arguments
ciu |
|
instance |
Input values for the instance to explain. Should be a
data.frame even though a |
ind.inputs |
Vector of indices for the inputs to be included in the plot. If NULL then all inputs will be included. |
ind.output |
Index of output to be explained. |
in.min.max.limits |
data.frame or matrix with one row per output and two columns, where the first column indicates the minimal value and the second column the maximal value for that output. ONLY NEEDED HERE IF not given as parameter to ciu.new or if the limits are different for this specific instance than the default ones. |
n.samples |
How many instances to generate for estimating CI and CU. For inputs of type factor, all possible combinations of input values are generated, so this parameter only influences how many instances are (at least) generated for continuous-valued inputs. |
neutral.CU |
Indicates when the Contextual Utility is considered to be "negative". The default value of 0.5 seems quite logical for most cases. |
show.input.values |
Include input values after input labels or not. Default is TRUE. |
concepts.to.explain |
List of concepts to use in the plot, as defined
by vocabulary provided as argument to ciu.new. If |
target.concept |
If provided, then calculate CIU of inputs
|
target.ciu |
|
ciu.meta |
If given, then use existing |
color.ramp.below.neutral |
Color ramp function as returned by function
|
color.ramp.above.neutral |
Color ramp function as returned by function
|
use.influence |
Plot using "influence" rather than CIU, i.e. a LIME-like barplot. Default is FALSE. |
sort |
NULL, "CI" or "CU". |
decreasing |
Set to TRUE for decreasing sort. |
main |
Text to use as main title. |
xlab |
Label for x-axis. |
xlim |
Minimal and maximal values for x-axis. |
... |
See base::plot. |
Value
"void", i.e. whatever happens to be result of last instruction.
Author(s)
Kary Främling