| 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 = "#FC8D59",
passes = "#91CF60", nNA = "#FFFFBF"))
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.
data(retailers)
cf <- check_that(retailers
, staff.costs < total.costs
, turnover + other.rev == total.rev
, other.rev > 0
, total.rev > 0)
barplot(cf)