Plot number of violations
# S4 method for 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"))
an R object defining height of bars (here, a validation object)
validation
parameters to be passed to barplot but not height, horiz, border,las, and las.
barplot
height
horiz
border
las
(single character) order bars decreasingly from top to bottom by the number of fails, passes or NA's.
character
NA
(3-vector of characters) Stacking order for bar chart (left to right)
characters
If specified, plot only the top n most violated calls
Display legend?
Display rules?
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.
RColorBrewer
Other validation-methods: aggregate,validation-method, all,validation-method, any,validation-method, check_that, compare, confront, event, plot,validation-method, sort,validation-method, summary, validation-class, values
aggregate,validation-method
all,validation-method
any,validation-method
check_that
compare
confront
event
plot,validation-method
sort,validation-method
summary
validation-class
values
# NOT RUN { data(retailers) cf <- check_that(retailers , staff.costs < total.costs , turnover + other.rev == total.rev , other.rev > 0 , total.rev > 0) barplot(cf) # }
Run the code above in your browser using DataLab