# XY Coordinates under original plotting region
TernaryToXY(c(1, 2, 3))
previous <- .SetRegion(rbind(min = c(20, 20, 20), max = c(60, 60, 60)))
# New region options set
getOption("ternRegion")
# Coordinates under new plotting region
TernaryToXY(c(1, 2, 3))
# Restore previous setting
options(previous)
getOption("ternRegion")
Run the code above in your browser using DataLab