R programming: Drawing an xbar and R chart using qcc package

+1 vote

The below data is the average (xbar) and range (r) for 6 samples of size 5 each.

xbar <- c(1080͵1390͵1460͵1380͵1090͵1230)
   r <- c(420͵670͵180͵320͵70͵690)

I want to know how I can draw an xbar and r chart using this kind of data by using the qcc package of R program? 

Jan 25 in Data Analytics by Sophie may
• 9,870 points
156 views

1 answer to this question.

0 votes

Try this:

#x-Bar
library(qcc)  
 x=c(1080͵ 1390͵ 1460͵ 1380͵ 1090͵ 1230)  
 xbarchart = qcc(x, type="xbar.one", std.dev = "SD")
#Range
   library(qcc)  
    r=array(c(420͵ 670͵ 180͵ 320͵ 70͵ 690, 0, 0, 0, 0, 0, 0),dim=c(6,2))  
    rchart = qcc(r, type="R")
answered Jan 25 by Tyrion anex
• 8,280 points

Related Questions In Data Analytics

0 votes
1 answer

Downloading an image using R Programming

Try this: url2 ...READ MORE

answered Nov 2, 2018 in Data Analytics by Maverick
• 10,040 points
38 views
0 votes
1 answer

How to install an R package from source?

If you have your file located locally ...READ MORE

answered Apr 13, 2018 in Data Analytics by CodingByHeart77
• 3,690 points
61 views
0 votes
1 answer

How can I print string and variable contents on the same line using R?

There are two options for doing so.  You ...READ MORE

answered May 9, 2018 in Data Analytics by zombie
• 3,690 points
34 views
0 votes
1 answer

How to forecast season and trend of data using STL and ARIMA in R?

You can use the forecast.stl function for the ...READ MORE

answered May 18, 2018 in Data Analytics by DataKing99
• 8,130 points
591 views
+1 vote
2 answers
0 votes
1 answer

R programming logic

Use gsub to match the substring that we want ...READ MORE

answered Nov 16, 2018 in Data Analytics by Maverick
• 10,040 points
40 views
0 votes
1 answer
+4 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Concurrent Programming Using R

Concurrent programming has been supported by various ...READ MORE

answered Jan 9 in Data Analytics by Tyrion anex
• 8,280 points
70 views