0

I am using the qcc library to create an xbar.

When I use the following values it works:

data <- c(4.74, 8.71, 7.01)
qcc(data, type="xbar.one", center = 2)

I however also want to plot values on the x-axis. So instead of saying 1, 2, 3 it should say: "John, Mike, Jason"

Any thoughts on how I can easily add these values on the x-axis?

Marc van der Peet
  • 323
  • 1
  • 6
  • 14
  • 1
    you can just use the `labels` argument of the function : `qcc(data, type="xbar.one", center = 2, labels=c("John", "Mike", "Jason"))` (it might have helped to have a look at `help("qcc")`...) – Cath Jun 24 '15 at 09:48
  • Thanks @CathG. Will dive into the help funtion next time. Just a starter – Marc van der Peet Jun 24 '15 at 09:51
  • tutorials and help pages are better (and more appropriate) than SO to start.. – Cath Jun 24 '15 at 10:56

0 Answers0