geom_errorbarX {ggtern} | R Documentation |
Ternary Error Bars
Description
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.
Usage
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,
...
)
Arguments
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, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
... |
Other arguments passed on to |
arrow |
specification for arrow heads, as created by |
lineend |
Line end style (round, butt, square). |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
Aesthetics (geom_errorbarT)
geom_errorbart
understands the following aesthetics (required aesthetics are in bold):
Tmax
Tmin
x
y
z
alpha
colour
linetype
linewidth
Aesthetics (geom_errorbarL)
geom_errorbarl
understands the following aesthetics (required aesthetics are in bold):
Lmax
Lmin
x
y
z
alpha
colour
linetype
linewidth
Aesthetics (geom_errorbarR)
geom_errorbarr
understands the following aesthetics (required aesthetics are in bold):
Rmax
Rmin
x
y
z
alpha
colour
linetype
linewidth
Author(s)
Nicholas Hamilton
Examples
#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')