Ternary Crosshairs
A new geometry, geom_crosshair_tern
is one that that marks on the respective axes,
the values of each data point. We also include additional geometries geom_Tmark
,
geom_Rmark
and geom_Lmark
– to render only the respective axis component
of the abovementioned crosshair.
geom_crosshair_tern(mapping = NULL, data = NULL, stat = "identity", position = "identity", ..., arrow = NULL, lineend = "butt", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE) geom_Tmark(mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = NULL, lineend = "butt", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...) geom_Lmark(mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = NULL, lineend = "butt", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...) geom_Rmark(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_crosshair_tern
understands the following aesthetics (required aesthetics are in bold):
x
y
z
alpha
colour
linetype
size
Nicholas Hamilton
set.seed(1) df = data.frame(x=runif(10),y=runif(10),z=runif(10)) base = ggtern(df,aes(x,y,z)) + geom_point() base + geom_crosshair_tern() base + geom_Tmark() base + geom_Rmark() base + geom_Lmark()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.