Description Usage Arguments Value Note Examples
This function uses an imported data set and creates a risk control graph based on detection and occurrence.
1 | risk_controls(filename)
|
filename |
Filename as an imported data frame (usually from an FMEA study). Must possess the fields named item_no, process_step, severity,occurrence, and detection. |
Returns a modified data frame to be used in the graphical depiction of risk controls.
Geom_jitter is not needed with this function to allow ggrepel to work more efficiently with labels. Specifically, a random jitter is added to severity, occurence and detection based on a standard normal variable (mean = 0 and sd = 0.25)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# Use the working file with a standard format to create a risk controls graphic.
library(ggplot2)
library(dplyr)
library(ggrepel)
# If importing an Excel worksheet, the following code chunk is to be used (based on your working directory).
library(readxl)
fmea_working_file <- read_excel("~/Data/Statistical Projects/R Projects/FMEA/inst/extdata/fmea_working_file.xls")
risk_controls(fmea_working_file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.