theme: Modify components of a theme

themeR Documentation

Modify components of a theme

Description

Custom theme elements for ggtern

Arguments

tern.axis.arrow

Base Arrow Line ('element_line'; inherits from 'axis.line')

tern.axis.arrow.T

Arrow Line for TOP Axis ('element_line'; inherits from 'tern.axis.arrow')

tern.axis.arrow.L

Arrow Line for LHS Axis ('element_line'; inherits from 'tern.axis.arrow')

tern.axis.arrow.R

Arrow Line for RHS Axis ('element_line'; inherits from 'tern.axis.arrow')

tern.axis.arrow.text

Base Arrow Label ('element_text'; inherits from 'tern.axis.text')

tern.axis.arrow.text.T

Arrow Label on TOP Axis ('element_text'; inherits from 'tern.axis.arrow.text')

tern.axis.arrow.text.L

Arrow Label on LHS Axis ('element_text'; inherits from 'tern.axis.arrow.text')

tern.axis.arrow.text.R

Arrow Label on RHS Axis ('element_text'; inherits from 'tern.axis.arrow.text')

tern.axis.arrow.start

Proportion of Axis when Arrow Starts ('numeric')

tern.axis.arrow.finish

Proportion of Axis when Arrow Finishes ('numeric')

tern.axis.arrow.sep

Arrows Seperation from Axis ('numeric')

tern.axis.arrow.show

Arrows Show or Hide ('logical')

tern.axis.clockwise

Clockwise or Anticlockwise Precession ('logical')

tern.axis.vshift

Amount to nudge the plot vertically ('numeric')

tern.axis.hshift

Amount to nudge the plot horizontally ('numeric')

tern.axis.line.ontop

Bring Axis Borders on Top of Everything (Depreciated) ('logical')

tern.axis.line

Base Line ('element_line'; inherits from 'axis.line')

tern.axis.line.T

Line for TOP Axis ('element_line'; inherits from 'tern.axis.line')

tern.axis.line.L

Line for LHS Axis ('element_line'; inherits from 'tern.axis.line')

tern.axis.line.R

Line for RHS Axis ('element_line'; inherits from 'tern.axis.line')

tern.axis.text

Base Text ('element_text'; inherits from 'axis.text')

tern.axis.text.T

Text for TOP Axis ('element_text'; inherits from 'tern.axis.text')

tern.axis.text.L

Text for LHS Axis ('element_text'; inherits from 'tern.axis.text')

tern.axis.text.R

Text for RHS Axis ('element_text'; inherits from 'tern.axis.text')

tern.axis.text.show

Axis Labels Show or Hide ('logical')

tern.axis.ticks

Base Ticks ('element_line'; inherits from 'axis.ticks')

tern.axis.ticks.length.major

Ticks Major Ticklength ('unit')

tern.axis.ticks.length.minor

Ticks Minor Ticklength ('unit')

tern.axis.ticks.major

Base Major Ticks ('element_line'; inherits from 'tern.axis.ticks')

tern.axis.ticks.major.T

Base Major Ticks for TOP Axis ('element_line'; inherits from 'tern.axis.ticks.major')

tern.axis.ticks.major.L

Base Major Ticks for LHS Axis ('element_line'; inherits from 'tern.axis.ticks.major')

tern.axis.ticks.major.R

Base Major Ticks for RHS Axis ('element_line'; inherits from 'tern.axis.ticks.major')

tern.axis.ticks.minor

Base Minor Ticks ('element_line'; inherits from 'tern.axis.ticks')

tern.axis.ticks.minor.T

Base Minor Ticks for TOP Axis ('element_line'; inherits from 'tern.axis.ticks.minor')

tern.axis.ticks.minor.L

Base Minor Ticks for LHS Axis ('element_line'; inherits from 'tern.axis.ticks.minor')

tern.axis.ticks.minor.R

Base Minor Ticks for RHS Axis ('element_line'; inherits from 'tern.axis.ticks.minor')

tern.axis.ticks.outside

Ticks Outside or Inside ('logical')

tern.axis.ticks.primary.show

Ticks Show Primary ('logical')

tern.axis.ticks.secondary.show

Ticks Show Secondary ('logical')

tern.axis.title

Base Apex Title ('element_text'; inherits from 'axis.title')

tern.axis.title.T

Apex Title for TOP Axis ('element_text'; inherits from 'tern.axis.title')

tern.axis.title.L

Apex Title for LHS Axis ('element_text'; inherits from 'tern.axis.title')

tern.axis.title.R

Apex Title for RHS Axis ('element_text'; inherits from 'tern.axis.title')

tern.axis.title.show

Apex Titles Show or Hide ('logical')

tern.panel.expand

The amount to expand the ternary plotting panel, in ratio to npc units ('numeric')

tern.panel.grid.major

Base Major Gridline ('element_line'; inherits from 'panel.grid.major')

tern.panel.grid.major.T

Major Gridline for TOP Axis ('element_line'; inherits from 'tern.panel.grid.major')

tern.panel.grid.major.L

Major Gridline for LHS Axis ('element_line'; inherits from 'tern.panel.grid.major')

tern.panel.grid.major.R

Major Gridline for RHS Axis ('element_line'; inherits from 'tern.panel.grid.major')

tern.panel.grid.major.show

Show or Hide Major Gridline ('logical')

tern.panel.grid.minor

Base Minor Gridline ('element_line'; inherits from 'panel.grid.minor')

tern.panel.grid.minor.T

Minor Gridline for TOP Axis ('element_line'; inherits from 'tern.panel.grid.minor')

tern.panel.grid.minor.L

Minor Gridline for LHS Axis ('element_line'; inherits from 'tern.panel.grid.minor')

tern.panel.grid.minor.R

Minor Gridline for RHS Axis ('element_line'; inherits from 'tern.panel.grid.minor')

tern.panel.grid.minor.show

Show or Hide Minor Gridline ('logical')

tern.panel.grid.ontop

Bring grids, axis and axis labels on top of everything else ('logical')

tern.panel.mask.show

Show or Hide the Clipping Mask ('logical')

tern.panel.rotate

The amount to rotate the ternary diagram in degrees ('numeric')

tern.plot.background

Background of Ternary Clipping Area** ('element_rect'; inherits from 'plot.background')

tern.plot.latex

Whether to parse characters as latex commands ('logical')

Details

Modify components of a theme (ggtern version)

Use 'theme()' to modify individual components of a theme, allowing you to control the appearance of all non-data components of the plot. 'theme()' only affects a single plot: see [theme_update()] if you want modify the active theme, to affect all subsequent plots.

Theme inheritance

Theme elements inherit properties from other theme elements. For example, 'axis.title.x' inherits from 'axis.title', which in turn inherits from 'text'. All text elements inherit directly or indirectly from 'text'; all lines inherit from 'line', and all rectangular objects inherit from 'rect'. This means that you can modify the appearance of multiple elements by setting a single high-level component.

Author(s)

Nicholas Hamilton

See Also

theme


ggtern documentation built on June 22, 2024, 11:01 a.m.