Learn R Programming

ggtern (version 1.0.5.0)

scale_TLR_continuous: Ternary Continuous Scales

Description

Create continuous scales for the top (T), left (L) and right(R) species in the ternary diagram, and, control the appearance of the labels, the limits, major and minor breaks.

Usage

scale_T_continuous(name = NULL, breaks = getOption("tern.breaks.default"),
  minor_breaks = getOption("tern.breaks.default.minor"), labels = 100 *
  breaks, limits = waiver())

scale_L_continuous(name = NULL, breaks = getOption("tern.breaks.default"), minor_breaks = getOption("tern.breaks.default.minor"), labels = 100 * breaks, limits = waiver())

scale_R_continuous(name = NULL, breaks = getOption("tern.breaks.default"), minor_breaks = getOption("tern.breaks.default.minor"), labels = 100 * breaks, limits = waiver())

Arguments

breaks
the major breaks
minor_breaks
the minor breaks
labels
the major labels
limits
the range of the scale
name
the name of the scale

Top Apex Species

scale_T_continuous creates a continuous scale for the top (T) species in the ternary diagram

Left Apex Species

scale_L_continuous creates a continuous scale for the left (L) species in the ternary diagram

Right Apex Species

scale_R_continuous creates a continuous scale for the right (R) species in the ternary diagram

Details

At the moment, only continuous scales are availa ble for ggtern T, L and R axes - log scales are NOT available. If one is interested in merely controling the limits (ranges) of the T, L and R species, it is much easier to use the tern_limits(...) function or its aliasses, click HERE for further information.

Examples

Run this code
data(Feldspar)
  plot <- ggtern(data=Feldspar,aes(An,Ab,Or)) + geom_point() +
          scale_T_continuous(breaks=seq(0,1,0.2),minor_breaks=seq(0,1,0.1)) +
          scale_L_continuous(breaks=seq(0,1,0.2),minor_breaks=seq(0,1,0.1))
  plot

Run the code above in your browser using DataLab