Re: [R] Formatting 'names.arg' in barplot

2010-12-08 Thread Thomas Stewart
Try this modification of your code. -tgs ynames <- base.dat.sel2$base.dat.Covariate[order(base.dat.sel2$base.dat.US.Num.Obs.to.Achieve.Starting.Residual,decreasing=F)] ynames <- as.character(ynames) ynames[12]<-expression(theta[r]) ynames[13]<-expression(EC[gw]) ttt<-barplot(base.dat.sel2$base.d

[R] Formatting 'names.arg' in barplot

2010-12-08 Thread emorway
Hello, I've been looking through ?phantom and ?expression and this forum for examples of how I might be able to manipulate some of the names that appear on the y-axis of the barplot below. For example, the "gw" in "ECgw" would appear as a subscript...or "qr" would be the theta symbol followed by