SixSigma icon indicating copy to clipboard operation
SixSigma copied to clipboard

Improvements in ss.rr plots

Open emilopezcano opened this issue 4 years ago • 3 comments

User request for ss.rr:

But how can I change the titles in the subplots. Most automatically adopt the name of the column that is specified such as appr = operator (in my case). But for the xbar > > chart it uses “appr”. Also, how could I change the position of the plots?

emilopezcano avatar Mar 01 '21 16:03 emilopezcano

As this bumps right into code I am currently looking at, I will take a look. such as appr = operator (in my case). But for the xbar > > chart it uses “appr”. Also, how could I change the position of the plots? As far as I can see, the xbar chart also uses the name of the column. I am going to guess that issue may have been a bug and previously addressed?

In the ss.rr.R code each plot has a name attribute and a row and column attribute. I am thinking to define an optional argument and set all of those up in some form of variable (probably a matrix) at the top of the code which can be overwritten.

k-tatgenhorst avatar Apr 19 '23 00:04 k-tatgenhorst

I have an additional optional argument (layout) which is passed. It defaults to an empty matrix of 6 rows, 3 columns. Each row carries a title and row and column for one of the graphs. I currently have this working and am working on the testing for the argument (so it doesn't just accept junk). I hope to submit a pull request for this tonight.

In terms of building this argument in a call, here is a sample:

The six variables are in the order in which the graphs are normally viewed.

However, the rows and columns are reversed and this does reverse the order on the screen.

bp <- c("Summarized Variation", 3, 2) cr <- c("Variance Between Appraisers", 2, 2) cm <- c("Mean of x Between Operators", 1, 2) vbp <- c("Variation Between Parts", 3, 1) vba <- c("Variation Between Appraisers", 2, 1) pai <- c("Part and Appraiser Interaction", 1, 1)

layout <- rbind(bp,cr, cm, vbp, vba, pai) rownames(layout) <- c("bp","cr", "cm", "vbp", "vba", "pai")

k-tatgenhorst avatar Apr 19 '23 14:04 k-tatgenhorst

This is a call I wrote based off of someone else's Youtube video (I don't want anyone thinking I am plagiarizing, but I forgot whose video it was). I wanted one that was very simple. So, this file can either call with or without the customizations to make it easy for any to test and look (yes - the ss.R needs to be merged before this will work).

One other note, as you play with customization remember that the 6th chart (part:appraiser) is not displayed if you set the method to "nested".

Enjoy - and please feel free to give feedback or make corrections.

customizableGRR.txt

k-tatgenhorst avatar Apr 19 '23 17:04 k-tatgenhorst