nhs-r-community / NHSRplotthedots

An SPC package to support NHSE/I 'Making Data Count' programme
https://nhs-r-community.github.io/NHSRplotthedots/
Other
47 stars 22 forks source link

Support crosstalk shared data #132

Closed tomjemmett closed 2 years ago

tomjemmett commented 2 years ago

this is to try to resolve #128 by making ptd_spc() a generic function with implementations for data.frame and SharedData.

the SharedData method hands all of the actual logic off to the data.frame method, which is the previous ptd_spc function.

this needs some testing from someone with knowledge of {crosstalk} to ensure these changes work.