closed_labels {scUtils}R Documentation

Human-readable labels for closed breaks

Description

Complements the closed_breaks_log2 function.

Usage

closed_labels(x, min_is_zero = FALSE)

Arguments

x

Vector of breaks for which to produce labels. Typically, this is the output of closed_breaks_log2.

min_is_zero

Should the smallest break be displayed as zero (TRUE) or as the actual value (FALSE). Default: FALSE

Details

This is a helper for the feat function. feat replaces numeric zeros with the next-smallest expression value to avoid taking the logarithm of zero. min_is_zero can be used to display the lowest break of the color scale as zero in these cases.

Value

Character vector with labels, used by feat function.

See Also

label_scientific label_number_auto

Examples

 # human readable output:
 closed_labels(c(.001111,.122, 0.5, 10, 100, 1800))

[Package scUtils version 0.1.0 Index]