add_ci | R Documentation |
Confidence interval looks can only be added to point shapes.
add_ci( pj, m, type = "line", dir = "v", d = NA, pos = NA, neg = NA, shape = ".", name = "." )
pj |
an object of class |
m |
positive numeric vector of length recyclable with |
type |
|
dir |
|
d |
|
pos |
|
neg |
|
shape |
character scalar indicating the type of shape to which the look will be applied. |
pj
with the addition of the confidence interval look applied
to the specified points shape.
line
A line confidence interval is simply a line between the minimum point
of a confidence interval and its maximum point.
cap
A capped-line confidence interval is a line interval with a cap at the
ends of the line.
taper
A tapered confidence interval is a thin polygon thickest at the middle
of the confidence interval and narrowing to zero width at the lower and
upper bounds of the interval.
ribbon
A ribbon confidence interval is a polygon defined by the area between
minimum and maximum values of confidence intervals for a sorted series of
points.
Either d
must be supplied or
both pos
and neg
must be supplied.
Intervals can be validly described using a number of patterns of argument properties as follows:
x + y + m + dir + type + d
symmetric confidence interval of
width 2dm
.
x + y + m + dir + type + neg + pos
non-symmetric confidence
interval of width m(pos + neg)
.
The argument d
or the arguments
pos
and neg
are recycled with the values of x
and
y
associated with the points shape the confidence interval is to be
applied to.
Other add_look:
add_ends()
,
add_fills()
,
add_glyphs()
,
add_labels()
,
add_lines()
,
add_marks()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.