Ternary Error Bars
geom_errorbarT
, geom_errorbarL
and geom_errorbarR
are geometries to render error bars
for the top, left and right apex species respectively, analogous to geom_errorbar
and/or
geom_errorbarh
as provided in the base ggplot2 package.
geom_errorbarT(mapping = NULL, data = NULL, stat = "identity", position = "identity", ..., arrow = NULL, lineend = "butt", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE) geom_errorbarL(mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = NULL, lineend = "butt", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...) geom_errorbarR(mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = NULL, lineend = "butt", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
arrow |
specification for arrow heads, as created by arrow(). |
lineend |
Line end style (round, butt, square). |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_errorbart
understands the following aesthetics (required aesthetics are in bold):
Tmax
Tmin
x
y
z
alpha
colour
linetype
size
geom_errorbarl
understands the following aesthetics (required aesthetics are in bold):
Lmax
Lmin
x
y
z
alpha
colour
linetype
size
geom_errorbarr
understands the following aesthetics (required aesthetics are in bold):
Rmax
Rmin
x
y
z
alpha
colour
linetype
size
Nicholas Hamilton
#Example with Dummy Data. tmp <- data.frame(x=1/3, y=1/3, z=1/3, Min=1/3-1/6, Max=1/3+1/6) ggtern(data=tmp,aes(x,y,z)) + geom_point() + geom_errorbarT(aes(Tmin=Min,Tmax=Max),colour='red')+ geom_errorbarL(aes(Lmin=Min,Lmax=Max),colour='green')+ geom_errorbarR(aes(Rmin=Min,Rmax=Max),colour='blue')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.