regerr {rreg} | R Documentation |
Plot for variability
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
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
# basic usage
regerr(hfdata, inst, case2, ll, ul)
regerr(hfdata, inst, case2, ll, ul, comp="Sabah")
[Package rreg version 0.2.1 Index]