Learn R Programming

ggtern (version 1.0.1.3)

labsnew: Change Axis labels and legend titles

Description

New label modification functions, equivalent to the original functions in ggplot2.

Usage

zlab(label)

Tlab(label)

Llab(label)

Rlab(label)

Wlab(label)

Arguments

label
the label value to change

Details

NB: Tlab and xlab are equivalent, as is Llab and ylab, and Rlab and zlab. Wlab changes the ternary arrow suffix. (ie atomic percent, weight percent etc.)

See Also

labs

Examples

Run this code
data(Feldspar)
plot <- ggtern(data=Feldspar,aes(Ab,An,Or)) +
        geom_point() +
        xlab("ABC")  +
        ylab("DEF")  +
        zlab("GHI")
plot

Run the code above in your browser using DataLab