Search code examples
rmultivariate-testing

In R how do you label the x-axis for T2 plots using mqcc?


I am using the QCR library to draw the hotelling's T2 plot. I do not see any method/options in the document to update/modify the xaxis. I would like my hotelling Plot to be labeled. Anyone have a work around for this?

For Example

mqcc(mtcars)

gives the following plot


Solution

  • You can create an appropriate object type (eg. mqcd, mqcs) using the QCR library and plot separately supplying xlabels with xlab parameter.

    Now that the question is edited and we are dealing with a different issue, I would suggest below as the starting point and build on it (format, colour etc.)

    a1 <- mqcc(mtcars)
    plot(a1$statistics,names(a1$statistics))