[R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread Rich Shepard
For an axis label I want to include the Greek letter mu within the string. I've not found the proper way of including that expression within the string. What I want is Conductivity (uS/cm) with the 'u' replaced by mu. When I try Conductivity ( expression(paste(mu)) S/cm) I get an error. If I

Re: [R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread David Winsemius
On Oct 21, 2011, at 11:27 AM, Rich Shepard wrote: For an axis label I want to include the Greek letter mu within the string. I've not found the proper way of including that expression within the string. What I want is Conductivity (uS/cm) with the 'u' replaced by mu. When I try

Re: [R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread Rich Shepard
On Fri, 21 Oct 2011, David Winsemius wrote: plot(1,1, xlab=expression(Conductivity~(*mu*S/cm*)) ) Thank you, David. It did not occur to me to look for a help page. I'll read that now that I looked and found it. Rich __ R-help@r-project.org

Re: [R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread Luke Miller
The following produces something very similar to David's method: plot(1,1, xlab = expression(paste(Conductivity (, mu, S / cm but with a slightly different slash character. I think David's method is more correct, but I've used the above method in the past with some success. On Fri, Oct 21,

Re: [R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread Rich Shepard
On Fri, 21 Oct 2011, Luke Miller wrote: The following produces something very similar to David's method: plot(1,1, xlab = expression(paste(Conductivity (, mu, S / cm but with a slightly different slash character. I think David's method is more correct, but I've used the above method in the