[R] italics help in plot
baptiste auguie
baptiste.auguie at googlemail.com
Tue Oct 6 12:38:25 CEST 2009
Hi,
Try this,
> x= "my title"
> plot(1,1, main = bquote(italic(.(x))))
HTH,
baptiste
2009/10/6 Jacob Kasper <jacobkasper at 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 at 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.
>
More information about the R-help
mailing list