How to plot Cause and Effect Diagram in R?

Description

How to plot a Cause and Effect Diagram using R programming.

Steps in creating Cause andEffect Diagram:

   Name the main problem or event.

   This usually goes at the head ofthe "fish" in your diagram.

   Make categories for causes andcreate the "bone structure" ofyour fish.

   Common categories include: people,methods, measurements, materials,machines and environment

   List possible causes under eachcategory including variations in aprocess or design.

   Insert your completed fishbonediagram into any report orpresentation.

R Package : SixSigma

R Function : ceDiag()

#Cause and Effect Diagram or Fish- bone Sample
#install.packages(“qcc”)
library(“qcc”)

#Effect
effect<-“Less Productivity”

#Causes
causes.head<-c(“Measurement”, “Material”, “Methods”, “Environment”, “Manpower”, “Machines”)

#Individual Causes
causes<-vector(mode = “list”, length = length(causes.head))
causes[1]<-list(c(“Lab error”, “Contamination”))
causes[2]<-list(c(“Raw Material”, “Additive”))
causes[3]<-list(c(“Sampling”, “Analytical Procedure”))
causes[4]<-list(c(“Rust near sample point”))
causes[5]<-list(c(“Poor analyst”,”No guidance”))
causes[6]<-list(c(“Leakage”, “breakdown”))

#Fishbone Diagram
#install.packages(“SixSigma”)
library(“SixSigma”)
ss.ceDiag(effect,causes.head,causes,sub=”ABC Pvt. Ltd”,ss.col = c(“”,”red”))

Leave Comment

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

clear formSubmit