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 and
Effect Diagram:

  1. Name the main problem or event.
    This usually goes at the head of
    the “fish” in your diagram.
  2. Make categories for causes and
    create the “bone structure” of
    your fish.
  3.  Common categories include: people,
    methods, measurements, materials,
    machines and environment
  4. List possible causes under each
    category including variations in a
    process or design.
  5. Insert your completed fishbone
    diagram into any report or
    presentation.
  6. R Package : SixSigma
  7. 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