plot.ab: Plot credible intervals

Description Usage Arguments Value Examples

Description

Plot credible intervals

Usage

1
2
plot.ab(object, only.sig = FALSE, percent.change = TRUE, metrics,
  legend = FALSE, size = 1, horizontal = TRUE, n.char = 25, ...)

Arguments

object

An object of class ab.

only.sig

If TRUE, plots only credible intervals associated to tests that are statistically significant.

percent.change

If TRUE, plots the credible intervals for the percent change. If FALSE, plots the credible intervals for the difference.

metrics

The names of the metrics to plot. If missing, all metrics are plotted.

legend

If TRUE, plots a legend.

size

Width of the credible intervals.

horizontal

If TRUE, the credible intervals are horizontal.

Value

Plot of confidence intervals.

Examples

1
2
3
4
5
  data <- SampleData(n.metric = 3, mu.trmt = c(12, 10, 10))
  ans <- PrePost(data)
  plot(ans)
  plot(ans, horizontal = FALSE)
  plot(ans, only.sig = TRUE)

google/abpackage documentation built on May 8, 2019, 11:44 a.m.