| barplot,validation-method {validate} | R Documentation |
Plot number of violations
## S4 method for signature 'validation'
barplot(height, ..., order_by = c("fails", "passes",
"nNA"), stack_by = c("fails", "passes", "nNA"), topn = Inf,
add_legend = TRUE, add_exprs = TRUE, colors = c(fails = "#FB9A99",
passes = "#B2DF8A", nNA = "#FDBF6F"))
height |
an R object defining height of bars (here, a |
... |
parameters to be passed to |
order_by |
(single |
stack_by |
(3-vector of |
topn |
If specified, plot only the top n most violated calls |
add_legend |
Display legend? |
add_exprs |
Display rules? |
colors |
Bar colors for validations yielding NA or a violation |
A list, containing the bar locations as in barplot
The default colors were generated with the RColorBrewer package of Erich Neuwirth.
Other validation-methods: aggregate,validation-method,
all,validation-method,
any,validation-method,
check_that, compare,
confront,
plot,validation-method,
sort,validation-method,
summary, validation-class,
values
data(retailers)
cf <- check_that(retailers
, staff.costs < total.costs
, turnover + other.rev == total.rev
, other.rev > 0
, total.rev > 0)
barplot(cf)