Skip to contents

Ternary Plot Annotation

Usage

ternary_title(
  main = NULL,
  sub = NULL,
  xlab = NULL,
  ylab = NULL,
  zlab = NULL,
  line = NA,
  outer = FALSE,
  ...
)

Arguments

main

A character string specifying the main title (on top).

sub

A character string specifying the sub-title (at bottom).

xlab, ylab, zlab

A character string giving a label for the x, y and z axes.

line

Specifying a value for line overrides the default placement of labels, and places them this many lines outwards from the plot edge.

outer

A logical scalar: should the titles be placed in the outer margins of the plot?

...

Other graphical parameters may also be passed as arguments to this function, particularly, font.main, cex.main, col.main and font.sub, cex.sub, col.sub for title annotation; font.lab, cex.lab and col.lab for axis label.

Value

ternary_title() is called it for its side-effects.

See also

Other graphical elements: ternary_axis(), ternary_box(), ternary_grid(), ternary_pairs(), ternary_plot()

Author

N. Frerebeau

Examples

## Add title
ternary_plot(NULL, main = "Main title", sub = "Subtitle",
             xlab = "A", ylab = "B", zlab = "C")


ternary_plot(NULL, ann = FALSE)
ternary_title(main = "Main title", sub = "Subtitle",
              xlab = "A", ylab = "B", zlab = "C")