A function to draw the confidence interval as a diamond
CI_draw(plotobj, x, y, a = 1, b = 1)
plotobj
: the obj to be plotx
: the x coordinate of the center to be plottedy
: the y coordinate of the center to be plotteda
: the distance between the center to the vertext on x-axis of the diamondb
: the distance between the center to the vertext on x-axis of the diamonda ggplot object
Useful links