geom_confidence_tern {ggtern} | R Documentation |
Confidence Interval
Description
Calculates the confidence intervals, via the Mahalnobis Distance and use of the Log-Ratio
Transformation
Statistic
Usage
geom_confidence_tern(
mapping = NULL,
data = NULL,
stat = "ConfidenceTern",
position = "identity",
...,
lineend = "butt",
linejoin = "round",
linemitre = 1,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
stat_confidence_tern(
mapping = NULL,
data = NULL,
geom = "ConfidenceTern",
position = "identity",
...,
contour = TRUE,
n = 100,
h = NULL,
na.rm = FALSE,
breaks = c(0.5, 0.9, 0.95),
show.legend = NA,
inherit.aes = TRUE
)
Arguments
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
... |
Other arguments passed on to |
lineend |
Line end style (round, butt, square). |
linejoin |
Line join style (round, mitre, bevel). |
linemitre |
Line mitre limit (number greater than 1). |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom , stat |
Use to override the default connection between
|
contour |
If |
n |
number of grid points in each direction |
h |
Bandwidth (vector of length two). If |
breaks |
the confidence intervals, default to 50, 90 and 95 percent. |
Aesthetics
geom_ConfidenceTern
understands the following aesthetics (required aesthetics are in bold):
x
y
alpha
colour
linetype
size
Computed variables
Same as stat_contour
Author(s)
Nicholas Hamilton
Examples
data(Feldspar)
ggtern(data=Feldspar,aes(An,Ab,Or)) +
geom_point() +
geom_confidence_tern()