plot,validator-method | R Documentation |
The matrix of variables x rules is plotted, in which rules that are
recognized as linear (in)equations are differently colored.
The augmented matrix is returned, but can also be calculated using
variables(x, as="matrix")
.
## S4 method for signature 'validator'
plot(
x,
y,
use_blocks = TRUE,
col = c("#b2df8a", "#a6cee3"),
cex = 1,
show_legend = TRUE,
...
)
x |
validator object with rules |
y |
not used |
use_blocks |
|
col |
|
cex |
size of the variables plotted. |
show_legend |
should a legend explaining the colors be drawn? |
... |
passed to image |
(invisible) the matrix
variables
Other validator-methods:
+,validator,validator-method
,
validator
Other expressionset-methods:
as.data.frame()
,
as.data.frame,expressionset-method
,
created()
,
description()
,
label()
,
meta()
,
names<-,rule,character-method
,
origin()
,
summary()
,
variables()
,
voptions()
rules <- validator( r1 = staff.costs < total.costs
, r2 = turnover + other.rev == total.rev
, r3 = other.rev > 0
, r4 = total.rev > 0
, r5 = nace %in% c("A", "B")
)
plot(rules, cex=0.8, show_legend=TRUE)
data(retailers)
cf <- confront(retailers, rules)
plot(cf, main="Retailers check")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.