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,050 points
69 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,000 points
15 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,680 points
30 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
12 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,100 points
364 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,000 points
13 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
41 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.