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 : > Part of my script reads: > > speciesName <- names(data)[i] > plot(year,depth, xlab="Year", > ylab="Depth(m)",main=expression(italic(paste(speciesName))) ) > > Unfortunately, this jus

[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 J