[R] italics help in plot

2009-10-06 Thread Jacob Kasper
Part of my script reads:

speciesName - names(data)[i]
plot(year,depth, xlab=Year,
ylab=Depth(m),main=expression(italic(paste(speciesName))) )

Unfortunately, this just plots *speciesName *on my graph, not the name of
the species in italics. Any suggestions on how to resolve this?

Thank you
Jacob

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] italics help in plot

2009-10-06 Thread baptiste auguie
Hi,

Try this,

 x= my title
 plot(1,1, main = bquote(italic(.(x

HTH,

baptiste

2009/10/6 Jacob Kasper jacobkas...@gmail.com:
 Part of my script reads:

 speciesName - names(data)[i]
 plot(year,depth, xlab=Year,
 ylab=Depth(m),main=expression(italic(paste(speciesName))) )

 Unfortunately, this just plots *speciesName *on my graph, not the name of
 the species in italics. Any suggestions on how to resolve this?

 Thank you
 Jacob

        [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.