.SetRegion | R Documentation |
Sets the region of the ternary plot being drawn.
Usually called from within TernaryPlot()
; everyday users are unlikely to
need to call this function directly.
.SetRegion(region, prettify = NA_integer_, set = TRUE)
region |
(optional) Named list of length two specifying the the
|
prettify |
If numeric, the plotting region will be expanded to allow
grid lines to be produced with |
set |
Logical specifying whether to set |
.SetRegion()
returns the value of options(ternRegion = region)
if set == TRUE
, or the region, otherwise..
Martin R. Smith (martin.smith@durham.ac.uk)
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.