View source: R/ggtern-constructor.R
ggtern | R Documentation |
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.
ggtern(data = NULL, mapping = aes(), ..., environment = parent.frame())
data |
Default dataset to use for plot. If not already a data.frame,
will be converted to one by |
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 |
environment |
ggtern(...)
returns an object of class ggplot
.
Nicholas Hamilton
For an introduction to the ggtern
package, (including many examples), click HERE.
ggtern(data=data.frame(x=1,y=1,z=1),aes(x,y,z)) + geom_point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.