Learn R Programming

ferrn (version 0.3.0)

format_label: Better label formatting to avoid overlapping

Description

Better label formatting to avoid overlapping

Usage

format_label(labels, accuracy)

Value

a vector of adjusted labels

Arguments

labels

a numerical vector of labels

accuracy

the accuracy of the label

Examples

Run this code
format_label(c(0.87, 0.87, 0.9, 0.93, 0.95), 0.01)
format_label(c(0.87, 0.87, 0.9, 0.93, 0.95, 0.96, 0.96), 0.01)

Run the code above in your browser using DataLab