Hi all, I would like to add phonetic symbols in my figures. Usually I typeset my documents in LaTeX and I use the tipa [1] package to get International Phonetic Alphabet (IPA) fonts. So, my problem would be solved if I could insert LaTeX commands in the text() function (I guess at least). I would like to avoid using psfrag (that is, inserting a string in the eps figure and then substituting it with the right symbol with dvips) because I would like to work with pdf pictures and pdflatex as well as latex -> dvips -> ps2pdf. If inserting special fonts is not possible at the moment, I would appreciate some hints on how I could go about modifying text() to include this feature. (This is why I post to r-devel instead of r-help) Thank you! Giampiero [1] http://www.essex.ac.uk/linguistics/clmt/latex4ling/tipa/
If all else fails (and hopefully someone who knows more about fonts and such can give you a better suggestion so you don't even have to try this) then look at the last example for the subplot function in the TeachingDemos package. This shows how you can insert images into a plot, you could create an image file of the symbol you want to use and then have subplot put it in the correct position. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at intermountainmail.org (801) 408-8111 -----Original Message----- From: r-devel-bounces at r-project.org [mailto:r-devel-bounces at r-project.org] On Behalf Of Giampiero Salvi Sent: Wednesday, December 13, 2006 7:21 AM To: r-devel at r-project.org Subject: [Rd] Phonetic symbols (IPA) in R graphics Hi all, I would like to add phonetic symbols in my figures. Usually I typeset my documents in LaTeX and I use the tipa [1] package to get International Phonetic Alphabet (IPA) fonts. So, my problem would be solved if I could insert LaTeX commands in the text() function (I guess at least). I would like to avoid using psfrag (that is, inserting a string in the eps figure and then substituting it with the right symbol with dvips) because I would like to work with pdf pictures and pdflatex as well as latex -> dvips -> ps2pdf. If inserting special fonts is not possible at the moment, I would appreciate some hints on how I could go about modifying text() to include this feature. (This is why I post to r-devel instead of r-help) Thank you! Giampiero [1] http://www.essex.ac.uk/linguistics/clmt/latex4ling/tipa/ ______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Hi Giampiero Salvi wrote:> Hi all, > I would like to add phonetic symbols in my figures. Usually I typeset > my documents in LaTeX and I use the tipa [1] package to get > International Phonetic Alphabet (IPA) fonts. So, my problem would be > solved if I could insert LaTeX commands in the text() function (I > guess at least). > > I would like to avoid using psfrag (that is, inserting a string in > the eps figure and then substituting it with the right symbol with > dvips) because I would like to work with pdf pictures and pdflatex > as well as latex -> dvips -> ps2pdf.Take a look at ... Fonts, lines, and transparency in R graphics. R News, 4(2):5-9, September 2004. Non-standard fonts in PostScript and PDF graphics. R News, 6(2):41-47, May 2006. http://www.stat.auckland.ac.nz/~paul/Talks/fonts.pdf Paul> If inserting special fonts is not possible at the moment, I would > appreciate some hints on how I could go about modifying text() to > include this feature. (This is why I post to r-devel instead of > r-help) > > Thank you! > Giampiero > > [1] http://www.essex.ac.uk/linguistics/clmt/latex4ling/tipa/ > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/