Learn R Programming

ggtern (version 1.0.5.0)

geom_errorbarL: 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_errorbarL(mapping = NULL, data = NULL, stat = "identity",
  position = "identity", allow.outside = TRUE, ...)

geom_errorbarR(mapping = NULL, data = NULL, stat = "identity", position = "identity", allow.outside = TRUE, ...)

geom_errorbarT(mapping = NULL, data = NULL, stat = "identity", position = "identity", allow.outside = TRUE, ...)

Arguments

allow.outside
logical value indicating whether the error bars can overflow the plot area, if FALSE, bars outiside will be stripped.
mapping
The aesthetic mapping, usually constructed with aes or aes_string. Only needs to be set at the layer level if you are overriding the plot defaults.
data
A layer specific dataset - only needed if you want to override the plot defaults.
stat
The statistical transformation to use on the data for this layer.
position
The position adjustment to use for overlapping points on this layer
...
other arguments passed on to layer. This can include aesthetics whose values you want to set, not map. See layer for more details.

Aesthetics (geom_errorbarT)

[results=rd,stage=build]{ggtern:::rd_aesthetics("geom", "errorbarT")}

Aesthetics (geom_errorbarL)
{ [results=rd,stage=build]{ggtern:::rd_aesthetics("geom", "errorbarL")}

Aesthetics (geom_errorbarR)
{ [results=rd,stage=build]{ggtern:::rd_aesthetics("geom", "errorbarR")} #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))+ geom_errorbarL(aes(Lmin=Min,Lmax=Max))+ geom_errorbarR(aes(Rmin=Min,Rmax=Max))