Plot tabulated data.
# S3 method for datawizard_tables
plot(
x,
label_values = TRUE,
show_na = c("if_any", "always", "never"),
na_label = "(Missing)",
error_bar = TRUE,
ci = 0.95,
color_fill = "#87CEFA",
color_error_bar = "#607B8B",
...
)# S3 method for datawizard_table
plot(
x,
label_values = TRUE,
show_na = c("if_any", "always", "never"),
na_label = "(Missing)",
error_bar = TRUE,
ci = 0.95,
color_fill = "#87CEFA",
color_error_bar = "#607B8B",
...
)
Object created by datawizard::data_tabulate()
.
Logical. Should values and percentages be displayed at the top of each bar.
Should missing values be dropped? Can be "if_any"
(default) to show
the missing category only if any missing values are present, "always"
to
always show the missing category, or "never"
to never show the missing
category.
The label given to missing values when they are shown.
Logical. Should error bars be displayed?
If TRUE
, confidence intervals computed using the Wilson method are shown.
See Brown et al. (2001) for details.
Confidence Interval (CI) level. Defaults to 0.95
(95%
).
Color to use for category columns (default: "#87CEFA"
).
Color to use for error bars (default: "#607B8B"
).
Unused
Brown, L. D., Cai, T. T., & Dasgupta, A. (2001). Interval estimation for a binomial proportion. Statistical Science, 16(2), 101-133. tools:::Rd_expr_doi("10.1214/ss/1009213286")