[R] Formatting names.arg

2011-05-23 Thread Adrienne Keller
I am making a barplot using barplot2 from gplots and would like to format the names of my categorical variables (tree species) on the x- axis so that the genus name is above the species name (to save room). My code so far is: speciesnames-c(Dialium guianensis, Inga alba, Tachigali

Re: [R] Formatting names.arg

2011-05-23 Thread Marc Schwartz
On May 23, 2011, at 3:13 PM, Adrienne Keller wrote: I am making a barplot using barplot2 from gplots and would like to format the names of my categorical variables (tree species) on the x- axis so that the genus name is above the species name (to save room). My code so far is:

Re: [R] Formatting names.arg

2011-05-23 Thread Ben Bolker
Adrienne Keller adrienne.keller at umontana.edu writes: I am making a barplot using barplot2 from gplots and would like to format the names of my categorical variables (tree species) on the x- axis so that the genus name is above the species name (to save room). My code so far is:

Re: [R] Formatting names.arg

2011-05-23 Thread David Winsemius
On May 23, 2011, at 4:32 PM, Marc Schwartz wrote: On May 23, 2011, at 3:13 PM, Adrienne Keller wrote: I am making a barplot using barplot2 from gplots and would like to format the names of my categorical variables (tree species) on the x- axis so that the genus name is above the species name

Re: [R] Formatting names.arg

2011-05-23 Thread Marc Schwartz
On May 23, 2011, at 4:31 PM, David Winsemius wrote: On May 23, 2011, at 4:32 PM, Marc Schwartz wrote: On May 23, 2011, at 3:13 PM, Adrienne Keller wrote: I am making a barplot using barplot2 from gplots and would like to format the names of my categorical variables (tree species) on the

[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

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])