Learn R Programming

ggtern (version 1.0.2.0)

element_ternary: Theme element: ternary structure

Description

NOTE: This function has been entirely depreciated, and, has been replaced by individual theme elements: axis.tern.showarrows axis.tern.padding axis.tern.arrowsep axis.tern.arrowstart axis.tern.arrowfinish axis.tern.vshift axis.tern.hshift axis.tern.ticklength.major axis.tern.ticklength.minor

Usage

element_ternary(showarrows, padding, arrowsep,
    arrowstart, arrowfinish, vshift, hshift,
    ticklength.major, ticklength.minor)

Arguments

showarrows
logical whether to show the axis directional arrows DEPRECIATED
padding
the padding around the plot area to make provision for axis labels, ticks and arrows, relative to the cartesian plane. DEPRECIATED
arrowsep
the distance between ternary axis and ternary arrows DEPRECIATED
arrowstart
the proportion along the ternary axis to start the directional arrow DEPRECIATED
arrowfinish
the proportion along the ternary axis to stop the directional arrow DEPRECIATED
vshift
shift the plot area vertically DEPRECIATED
hshift
shift the plot area horizontally DEPRECIATED
ticklength.major
the length of the major ternary ticks as an euclidean distance relative to the x and y limits of the cartesian plot area. DEPRECIATED
ticklength.minor
the length of the minor ternary ticks as an euclidean distance relative to the x and y limits of the cartesian plot area. DEPRECIATED

Details

Used to define the layout of some of the ggtern plot features which are unique to the ternary diagrams , and hence, this package.

Note that some of these items, unlike ggplot2 which permits absolute distances (ie say unit(1,"cm")) via the grid package, are instead defined as a relative length to the limits imposed by the underlying x and y axes.

For example, the ternary axes are rendered directly onto the plot area, (rather than using an exclusive grid component) and since the x limits (unless changed) are between [0,1], then a relative length of 0.02 represents a length that is approximately 2% of the plot edges from tip to tip. Elements which are subject to this include the padding, arrowsep, ticklength.major and ticklength.minor. This is perhaps not ideal, however, seemed to be a necessary sacrifice in order to produce these plots.