Labels

  • Every break is associated with a label, and labels can be changed.
  • You can supress lables with labels = NULL
  • Let’s see an example:

  • Label functions that are useful from the scales package are:
    • scales::label_bytes() formats numbers as kilobytes, megabytes etc.
    • scales::label_comma() formats numbers as decimals with commas added.
    • scales::label_dollar() formats numbers as currency.
    • scales::label_ordinal() formats numbers in rank order: 1st, 2nd, 3rd etc.
    • scales::label_percent() formats numbers as percentages.
    • scales::label_pvalue() formats numbers as p-values: <.05, <.01, .34, etc.