How to Create U chart


#1

I have following data, need to create U chart for column DPPM or columns((Failed/Built)*1000000) with Monthkey be in x-axis. Need this in R, Please suggest.

Matl_id Supplier monthkey Built Failed DPPM
781581 Seagate 12/1/2017 14496 5 344
781581 Toshiba 12/2/2017 10438 5 479
781581 WDC 12/3/2017 4196 5 1191
781581 Seagate 12/4/2017 11745 1 85
781581 Toshiba 12/5/2017 9362 10 1068
781581 WDC 12/6/2017 7251 1 137
781581 Seagate 12/8/2017 6676 20 2995
781581 Toshiba 12/9/2017 863 22 25492
781581 WDC 12/10/2017 7169 12 1673
781581 Seagate 12/11/2017 3052 1 327
781581 Toshiba 12/12/2017 1802 1 554
781581 WDC 12/1/2018 2974 10 3362
781581 Seagate 12/2/2018 2051 2 975
781581 Toshiba 12/3/2018 3700 2 540

#2

There are a couple of really nice packages for calculating SPC charts. My favorite is {qicharts2}, which has a function "qic()", where you pass in a dataframe and specify the arguments, and it gives you a nice ggplot2 SPC object :grinning:

You can find a really nice vignette here: https://cran.r-project.org/web/packages/qicharts2/vignettes/qicharts2.html


#3

What is the difference with this topic?

The way you provide data frame is not reproducible, as have been mentioned in the topic above. Please, take a look here on how to do that (especially posts about wrapr and datapasta):