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

ggtern

ggtern Constructor


Description

Plots in ggtern are instigated via the default constructor: ggtern(...), which is essentially a convenience wrapper for the following: ggplot{...} + coord_tern(), indeed, if one wishes to use ggplot{...} + coord_tern() then this is quite satisfactory.

Usage

ggtern(data = NULL, mapping = aes(), ...,
  environment = parent.frame())

Arguments

data

Default dataset to use for plot. If not already a data.frame, will be converted to one by fortify(). If not specified, must be supplied in each layer added to the plot.

mapping

Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.

...

additional arguments passed through to ggplot

environment

DEPRECATED. Used prior to tidy evaluation.

Value

ggtern(...) returns an object of class ggplot.

Author(s)

Nicholas Hamilton

See Also

For an introduction to the ggtern package, (including many examples), click HERE.

Examples

ggtern(data=data.frame(x=1,y=1,z=1),aes(x,y,z)) + geom_point()

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.