Skip to content

Labelling R plots using Greek letters

3 messages · John James, David Winsemius, Yihui Xie

#
On Dec 11, 2011, at 6:38 PM, john james wrote:

            
?plotmath

plot(1,1, xlab=expression(beta^"`"*X), ylab=expression(Y*"|"*X 
+beta^"`"*X) )

(Unfortunately the prime on the y lab is noe on the printed page in my  
device ( mac). so this hack seems to work better)

plot(1,1, xlab=expression(beta^"'"*X),  
ylab=expression(over(phantom(""), Y*"|"*X+beta^"'"*X) ))
David Winsemius, MD
West Hartford, CT
#
A short answer is you can consider the tikzDevice package; then a long
(really really long) answer is this:
http://yihui.github.com/knitr/demo/graphics/

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Sun, Dec 11, 2011 at 7:17 PM, David Winsemius <dwinsemius at comcast.net> wrote: