About the author

Related Articles

9 Comments

  1. 1

    Edward Watkinson

    Great stuff – well done. We have often found that consistency with SPC charts can be as important than statistical accuracy…

    Please share the code!! It doesn’t have to look pretty, be well commented or have examples (to start with) – just drag and drop onto github at https://github.com/new. The community will thank you 🙂

    Reply
    1. 1.1

      SImonWM

      Please share. We have been doing something locally and trying to adapt QCC package but would be really interested to see what you have done.

      Reply
    2. 1.2

      Christopher Reading

      The code is currently available on my github page, apologies if it’s a bit messy!

      https://github.com/chrisreading01/SPCwizard

      You can also see the shiny app live, kindly hosted by Chris Beeley from Nottinghamshire NHS Trust:

      http://suce.co.uk:8080/apps/spc_wizard/

      As mentioned in the blog there are some great conversations going on in the slack thread on SPCs.

      Reply
  2. 2

    Vicky Cross

    Hi Chris,

    This looks great! I’m trying to have a play around with the SPC Wizard, but I don’t think I’m getting the CSV structured properly, please could you upload a sample CSV file so I can see what I’m doing wrong?

    Thanks!

    Reply
    1. 2.1

      Christopher Reading

      Hi Vicky

      I’ve put a sample file on my github page which works with the tool.

      https://github.com/chrisreading01/SPCwizard/blob/master/sampledata2.csv

      Let me know if you have any questions!

      Best
      Chris

      Reply
  3. 3

    Andrew Ward

    Hi Chris.

    This looks great, I’ve used the shinyapp and the charts produced look exactly what we are trying to recreate in our Trusts (as I’m v=certain other Trusts are. (I’m currently producing these charts in excel each month)

    I’ve copied R script and sample data file (imported to r to create two fields ‘data’ (GP referrals) and ‘dates’ (date) but I seem to be hitting some errors at the create df section.

    Error in UseMethod(“mutate_”) :
    no applicable method for ‘mutate_’ applied to an object of class “function”
    > xaxis xaxisdisplay <- xaxis[seq(1,length(xaxis),x.axis.breaks)]
    Error in seq.default(1, length(xaxis), x.axis.breaks) :
    object 'x.axis.breaks' not found

    Any help would be gratefully received

    Many Thanks

    Andy

    Reply
    1. 3.1

      Christopher Reading

      Hi Andrew

      If you can email me your script, I’d be happy to take a look and try to find what’s causing the error.

      My email is christopher.reading1@nhs.net

      Bw

      Chris

      Reply
  4. 4

    Andrew Ward

    Many thanks Chris

    I’ve emailed the file to you.

    Kind Regards

    Andrew

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

2021 NHS-R Community.