powered by
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.
regerr(data, x, y, ll, ul, title, ylab, comp, col1, col2, ascending = TRUE, flip = TRUE, ...)
Data set
x-axis
y-axis
Lower limit
Upper limit
Title for the plot
Label for y-axis
Compare a specific bar from the rest for a vivid comparison eg. National compared to the different districts
Color for bars
Color for the 'diff' bar
Sort data ascending order
Flip plot horizontally
Additional arguments
# NOT RUN { # basic usage regerr(hfdata, inst, case2, ll, ul) regerr(hfdata, inst, case2, ll, ul, comp="Sabah") # }
Run the code above in your browser using DataLab