uclahs-cds / package-BoutrosLab-plotting-general

Functions to Create Publication-Quality Plots
https://uclahs-cds.github.io/package-BoutrosLab-plotting-general
12 stars 4 forks source link

Refactor code to prepare `xat` and `yat` #156

Closed dan-knight closed 1 year ago

dan-knight commented 1 year ago

There is code repetition in plotting functions when preparing axis tick location xat and yat values to pass to lattice (see this occurrence in create.boxplot). (This applies to both X and Y axes.).

This code should be refactored into a common utility function and unit tested. As well, we should be thorough and be sure that:

  1. The refactor catches any small deviations in the behaviour of this code between each specific plotting function.
  2. Plotting results are equivalent before and after. (Essentially, this is manual integration testing with lattice.)