View source: R/add_ternary_base.R
| add_ternary_base | R Documentation |
Draws the boundary of a 2D ternary simplex as an equilateral triangle
add_ternary_base(...)
... |
Arguments passed to |
A ggplot object
library(ggplot2)
# Basic simplex
ggplot() + add_ternary_base()
# Customize appearance
ggplot() + add_ternary_base(colour = "blue", linewidth = 1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.