BasicKey: Template for Ternary Key

View source: R/tricolore.R

BasicKeyR Documentation

Template for Ternary Key

Description

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

Usage

BasicKey(legend_surface, limits, brklab, show_center, center, lwd)

Arguments

legend_surface

A data frame with numeric 'id', 'p1', 'p2', 'p3' and character column 'rgb'.

limits

A 2 by 3 matrix of lower and upper limits for p1, p2 and p3.

brklab

Breaks and labels as returned by BreaksAndLabels.

show_center

Should the center be marked on the legend? (logical)

center

Ternary coordinates of the grey-point.

lwd

A numeric scalar giving the linewidth of the legend surface polygons.

Value

A ggtern grob.


jschoeley/tricolore documentation built on Feb. 3, 2024, 4:33 a.m.