Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scale_X_continuous

Ternary Position Scales


Description

Define the ternary continuous position scales (T, L & R).

Usage

scale_T_continuous(name = waiver(), limits = NULL, breaks = waiver(),
  minor_breaks = waiver(), labels = waiver(), ...)

scale_L_continuous(name = waiver(), limits = NULL, breaks = waiver(),
  minor_breaks = waiver(), labels = waiver(), ...)

scale_R_continuous(name = waiver(), limits = NULL, breaks = waiver(),
  minor_breaks = waiver(), labels = waiver(), ...)

Arguments

name

The name of the scale. Used as the axis or legend title. If waiver(), the default, the name of the scale is taken from the first mapping used for that aesthetic. If NULL, the legend title will be omitted.

limits

One of:

  • NULL to use the default scale range

  • A numeric vector of length two providing limits of the scale. Use NA to refer to the existing minimum or maximum

  • A function that accepts the existing (automatic) limits and returns new limits Note that setting limits on positional scales will remove data outside of the limits. If the purpose is to zoom, use the limit argument in the coordinate system (see coord_cartesian()).

breaks

One of:

  • NULL for no breaks

  • waiver() for the default breaks computed by the transformation object

  • A numeric vector of positions

  • A function that takes the limits as input and returns breaks as output (e.g., a function returned by scales::extended_breaks())

minor_breaks

One of:

  • NULL for no minor breaks

  • waiver() for the default breaks (one minor break between each major break)

  • A numeric vector of positions

  • A function that given the limits returns a vector of minor breaks.

labels

One of:

  • NULL for no labels

  • waiver() for the default labels computed by the transformation object

  • A character vector giving labels (must be same length as breaks)

  • A function that takes the breaks as input and returns labels as output

...

not used

Author(s)

Nicholas Hamilton


ggtern

An Extension to 'ggplot2', for the Creation of Ternary Diagrams

v3.3.0
GPL-2 | file LICENSE
Authors
Nicholas Hamilton [aut, cre]
Initial release
2020-04-9

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.