R-Users,
I trying to get greek symbols in the labels of a plot. This is
successful in the title and in the x-label. But, not successful
in the y-label. Is this a bug or am I missing something?
For example,
plot(0,0,
xlab=substitute(paste(phi,"=",true,sigma),list(true=5)),
ylab=substitute(paste(phi,"=",true,sigma),list(true=5)),
main=substitute(paste(phi,"-Coordinates-",true,sigma),list(true=5)))
does the x-label and title correctly, but not y-label.
Cheers,
--
==================== Calvin L. Williams, Ph.D. ===================
Department of Mathematical Sciences, Clemson University
Box 340975 , 0-323 Martin Hall
Clemson, South Carolina 29634-0975
VOICE: (864) 656-5241 or leave message (864) 654-7187
EMAIL: calvinw at ces.clemson.edu
FAX: 1-(864) 656-5230
WWW: http://www.ces.clemson.edu/~calvinw/
===========================================================-------------- next
part --------------
An HTML attachment was scrubbed...
URL:
https://stat.ethz.ch/pipermail/r-help/attachments/20010920/7c410d63/attachment.html
On Thu, 20 Sep 2001, Calvin L. Williams, Ph.D. wrote:> R-Users, > > I trying to get greek symbols in the labels of a plot. This is > successful in the title and in the x-label. But, not successful > in the y-label. Is this a bug or am I missing something? > > For example, > plot(0,0, > xlab=substitute(paste(phi,"=",true,sigma),list(true=5)), > ylab=substitute(paste(phi,"=",true,sigma),list(true=5)), > main=substitute(paste(phi,"-Coordinates-",true,sigma),list(true=5))) > > does the x-label and title correctly, but not y-label.On what graphics device and OS? Works here, but as the y-axis label is rotated it depends on having rotation support for the symbol font. Try postscript(): I would be surprised if that failed. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Calvin L. Williams, Ph.D." wrote:> > R-Users, > > I trying to get greek symbols in the labels of a plot. This is > successful in the title and in the x-label. But, not successful > in the y-label. Is this a bug or am I missing something? > > For example, > plot(0,0, > xlab=substitute(paste(phi,"=",true,sigma),list(true=5)), > ylab=substitute(paste(phi,"=",true,sigma),list(true=5)), > main=substitute(paste(phi,"-Coordinates-",true,sigma),list(true=5))) > does the x-label and title correctly, but not y-label.Works for me on NT4. Please tell us: R Version (1.3.1 ???), OS. Start R using the option vanilla and try again. Maybe there something wrong with your workspace. Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hola! I tried this example on my machine (R1.3.0, windows 98) and the y labels como out correctly. Kjetil Halvorsen "Calvin L. Williams, Ph.D." wrote:> > R-Users, > > I trying to get greek symbols in the labels of a plot. This is > successful in the title and in the x-label. But, not successful > in the y-label. Is this a bug or am I missing something? > > For example, > plot(0,0, > xlab=substitute(paste(phi,"=",true,sigma),list(true=5)), > ylab=substitute(paste(phi,"=",true,sigma),list(true=5)), > main=substitute(paste(phi,"-Coordinates-",true,sigma),list(true=5))) > does the x-label and title correctly, but not y-label. > Cheers, > > -- > > ==================== Calvin L. Williams, Ph.D. ===================> Department of Mathematical Sciences, Clemson University > Box 340975 , 0-323 Martin Hall > Clemson, South Carolina 29634-0975 > VOICE: (864) 656-5241 or leave message (864) 654-7187 > EMAIL: calvinw at ces.clemson.edu > FAX: 1-(864) 656-5230 > WWW: http://www.ces.clemson.edu/~calvinw/ > ===========================================================-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Sorry....
This is occurring on the Mac OS version 1.3.1. Tried it in
R Windows version, it works.
I guess I can create it using postscript, and move it over.
Thanks to those that replied... Brian, Uwe, and Kjetil.
Cheers,
=============================================================================R-Users,
I trying to get greek symbols in the labels of a plot. This is
successful in the title and in the x-label. But, not successful
in the y-label. Is this a bug or am I missing something?
For example,
plot(0,0,
xlab=substitute(paste(phi,"=",true,sigma),list(true=5)),
ylab=substitute(paste(phi,"=",true,sigma),list(true=5)),
main=substitute(paste(phi,"-Coordinates-",true,sigma),list(true=5)))
does the x-label and title correctly, but not y-label.
Cheers,
--
==================== Calvin L. Williams, Ph.D. ===================
Department of Mathematical Sciences, Clemson University
Box 340975 , 0-323 Martin Hall
Clemson, South Carolina 29634-0975
VOICE: (864) 656-5241 or leave message (864) 654-7187
EMAIL: calvinw at ces.clemson.edu
FAX: 1-(864) 656-5230
WWW: http://www.ces.clemson.edu/~calvinw/
===========================================================-------------- next
part --------------
An HTML attachment was scrubbed...
URL:
https://stat.ethz.ch/pipermail/r-help/attachments/20010920/6b851dff/attachment.html