regerr: Plot for variability

Description Usage Arguments Examples

Description

Create a plot to show uncertainty either by showing the Standard Error of the Mean (SEM) or Confidence Interval (CI). Lower and upper limit should be specified. Figure should also be commented if the variability is a SEM or CI.

Usage

1
2
regerr(data, x, y, ll, ul, title, ylab, comp, col1, col2, ascending = TRUE,
  flip = TRUE, ...)

Arguments

data

Data set

x

x-axis

y

y-axis

ll

Lower limit

ul

Upper limit

title

Title for the plot

ylab

Label for y-axis

comp

Compare a specific bar from the rest for a vivid comparison eg. National compared to the different districts

col1

Color for bars

col2

Color for the 'diff' bar

ascending

Sort data ascending order

flip

Flip plot horizontally

...

Additional arguments

Examples

1
2
3
# basic usage
regerr(hfdata, inst, case2, ll, ul)
regerr(hfdata, inst, case2, ll, ul, comp="Sabah")

rreg documentation built on May 2, 2019, 9:58 a.m.

Related to regerr in rreg...