QCC and PlotMath question
Shawn Way wrote:
For some reason, using the qcc package, I'm unable to use the plotmath notation in the title. Can anyone see what I'm doing wrong? library(qcc) a <- rnorm(100) qcc(a,type="xbar.one",title=expression(bar(X)),ylab=expression(CFU/ft^3) ) This seems to not let the expression be evaluated, so I tried: qcc(a,type="xbar.one",title=eval(expression(bar(X))),ylab=expression(CFU /ft^3)) And get the following error: Error in eval(expr, envir, enclos) : couldn't find function "bar" Any thoughts?
Add the title by a separate call: qcc(a, type="xbar.one", title="", ylab=expression(CFU/ft^3)) title(expression(bar(X))) Uwe Ligges
----------------------------------------------------------------- "Policies are many, Principles are few, Policies will change, Principles never do." -John C. Maxwell Shawn Way, PE
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html