Learn R Programming

ggtern (version 1.0.1.3)

percent_weight: Atomic, Weight or Custom Percentage Suffix

Description

percent_weight adds 'Wt. %' to the arrow marker label as a suffix

weight_percent is an alias for percent_weight()

percent_atomic adds 'At. %' to the arrow marker label as a suffix

atomic_percent is an alias for percent_atomic()

percent_custom adds a custom suffix to the arrow label marker.

custom_percent is an alias for percent_custom()

Usage

percent_weight()

weight_percent()

percent_atomic()

atomic_percent()

percent_custom(x)

custom_percent(x)

Arguments

x
the custom suffix

Details

By default there are no suffixes behind the arrow label marker (the arrow up next to the ternary axes), and these functions appends to the set of arrow labels, a value to indicate the nature of the scale.

These are convenience wrappers to labs(W="XYZ"). Atomic, Weight or Custom Percentage Suffix

Examples

Run this code
plot <- ggtern(data=data.frame(THS=1,LHS=0,RHS=0),aes(x=THS,y=LHS,z=RHS)) + geom_point()
plot + percent_weight()
plot + percent_atomic()
plot + percent_custom("Percentage")

Run the code above in your browser using DataLab