Learn R Programming

tricolore (version 1.2.2)

BreaksAndLabels: Breaks and Labels for Ternary Color Key

Description

Return various types of breaks and labels for ternary color keys.

Usage

BreaksAndLabels(type, center = NULL, breaks = NULL)

Arguments

type

An integer 1, 2, or 3.

center

Ternary coordinates of the grey-point.

breaks

Number of breaks in the discrete color scale. An integer >1. Values above 99 imply no discretization.

Value

A list of lists containing breaks and labels for each of the 3 ternary axes.

Examples

Run this code
# NOT RUN {
tricolore:::BreaksAndLabels(1, breaks = 3)
tricolore:::BreaksAndLabels(2)
tricolore:::BreaksAndLabels(3, center = c(1/3, 1/3, 1/3))

# }

Run the code above in your browser using DataLab