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 adding annotations for UCL, LCL and mean #141
Comments
I think this would be a good idea too, and something I have occasionally needed to make some commentary clear. Turn off and on-able with an argument to ptd_create_ggplot(), perhaps? I think the challenges are handling overplotting with points / plot boundaries, and also creating a clean API to handle labelling when the limits have been re-based (perhaps labelling first and most recent limits only to enable commentary on improvement shown by the chart?). |
Hi Tom, adding an argument to turn this feature on/off in ptd_create_ggplot() may be the way to go. |
Sounds good - thanks for raising the issue! |
The NHS-R newscast alerted me to this issue :-) |
It would be nice to avoid a secondary axis if possible. As Tom found with the icons, there is going to be overlapping with some chart combinations, which is hard to avoid without introducing a border for the annotations to sit in. |
the secondary axis way of labelling is a really neat approach and probably the way I would attack this, it's certainly what I've used in the past. In summary (at least, what I did): your secondary axis has the same limits as the primary axis, but different breaks: you set the breaks to be at lcl, mean, ucl, target (rather than a regular interval of +x from last tick). The labels then would use a function from There are some issues that may arise from this:
The alternative is to use something like |
PR #188 was created to address this issue, and that has now been merged into |
Thanks for the work on the PR Fran! Have seen the proposed docs updates in #192 |
Maybe this is a feature that already exists and I don't know(if so apologies!)...it would be useful to have the control limits and the mean displayed on the chart next/above the lines.
The text was updated successfully, but these errors were encountered: