Learn R Programming

ggcorrheatmap (version 0.1.2)

remove_duplicate_scales: Remove duplicate scales.

Description

If a mixed layout uses the same aesthetic for both triangles and only one (or no) colour or size scale has been specified, remove redundant scales.

Usage

remove_duplicate_scales(scale_vec, col_scale = NULL, size_scale = NULL)

Value

Vector of aesthetics with duplicates removed if appropriate.

Arguments

scale_vec

Vector of scale aesthetics.

col_scale

Input colour scales (NULL, string or scale object).

size_scale

Input size scales.