regerr: Plot for variability

Description Usage Arguments Examples

View source: R/regerr.R

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")

ybkamaleri/rreg documentation built on March 26, 2018, 11:02 a.m.