risk_controls: Potting a scatterplot of risk management controls.

Description Usage Arguments Value Note Examples

Description

This function uses an imported data set and creates a risk control graph based on detection and occurrence.

Usage

1
risk_controls(filename)

Arguments

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.

Value

Returns a modified data frame to be used in the graphical depiction of risk controls.

Note

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)

Examples

 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)

cowboy2718/FMEA documentation built on May 4, 2019, 1:21 p.m.