closed_labels: Human-readable labels for closed breaks

Description Usage Arguments Details Value See Also Examples

View source: R/plots.R

Description

Complements the closed_breaks_log2 function.

Usage

1
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

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

scUtils documentation built on July 2, 2020, 4:05 a.m.