我正在尝试在 r markdown 文件中创建一个帕累托图(来自 qcc 包)。
bondfailures <- read.csv("BondFailures.csv", header = T)
totalbondfailures <- bondfailures$Total
names(totalbondfailures) <- c("Degrease", "Chemical Treatments", "Incompatability", "Bad Storage", "Bad Refrigeration", "Bad Rolling", "Curling Temp", "Curling Humidity")
par("mar")
pareto.chart(totalbondfailures, ylab="Frequency", xlab="Defect Category", main="Pareto Diagram of Total Number of Failures by Defect Category")
它正在读取数据,但是当我尝试创建帕累托图时,我收到以下错误消息:
Error in par(bg = qcc.options("bg.margin"), mar = pmax(par("mar") + mar, :
invalid value specified for graphical parameter "mar"
我究竟做错了什么?