format_label function

Better label formatting to avoid overlapping

Better label formatting to avoid overlapping

format_label(labels, accuracy)

Arguments

  • labels: a numerical vector of labels
  • accuracy: the accuracy of the label

Returns

a vector of adjusted labels

Examples

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)
  • Maintainer: H. Sherry Zhang
  • License: MIT + file LICENSE
  • Last published: 2024-06-23