Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider a reporting aid function #148

Open
ThomUK opened this issue Jun 16, 2022 · 0 comments
Open

Consider a reporting aid function #148

ThomUK opened this issue Jun 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ThomUK
Copy link
Collaborator

ThomUK commented Jun 16, 2022

A major use-case for the package is to support routine reporting in the #plotthedots style.

I propose adding a convenience function such as ptd_get_report_info(), which would accept the ptd_spc() dataframe, and return a list object containing:

  • The dataframe (as a source of truth)
  • The ggplot object (pre-calculated and ready to drop into eg. RMarkdown documents)
  • The chart title & subtitle (for convenience and use on reports)
  • The "name" of the variation icon (to enable swapping icons in on final reports)
  • The "name of the assurance icon
  • Some short canned text explaining the meaning of the variation and assurance (MDC team have some good practice on this)
  • The target value with appropriate rounding and % sign if percentage data (for convenient use on reports)
  • The value of the last 3 points (again with rounding and % signs if appropriate), and their corresponding dates
  • When Report type of special cause variation #122 is implemented the type of variation (reason for the special cause) could be included

This object could be used to simplify reporting by consolidating all the information needed in one place.
Using it would then be a case of using:

my_spc$title
my_spc$sub-title
my_spc$target
my_spc$last_point_value
my_spc$last_point_date
my_spc$variation_type
my_spc$assurance_type
my_spc$ggplot_chart
etc...
@ThomUK ThomUK added the enhancement New feature or request label Jun 16, 2022
@ThomUK ThomUK self-assigned this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant