R programming Drawing an xbar and R chart using qcc package

+2 votes

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, 2019 in Data Analytics by Sophie may
• 10,610 points
1,343 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, 2019 by Tyrion anex
• 8,700 points

Related Questions In Data Analytics

+1 vote
1 answer

Downloading an image using R Programming

Try this: url2 ...READ MORE

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

How to install an R package from source?

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

answered Apr 14, 2018 in Data Analytics by CodingByHeart77
• 3,740 points
612 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,790 points
1,656 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 19, 2018 in Data Analytics by DataKing99
• 8,240 points
1,953 views
+10 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 9, 2018 in Data Analytics by Abhi
• 3,720 points
1,148 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,840 points
478 views
0 votes
1 answer
0 votes
1 answer

R programming: Using Caret package to implement Random Forest

You can check out the official docs ...READ MORE

answered Apr 30, 2019 in Data Analytics by Tyrion anex
• 8,700 points
506 views
0 votes
1 answer

Concurrent Programming Using R

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

answered Jan 9, 2019 in Data Analytics by Tyrion anex
• 8,700 points
720 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP